summaryrefslogtreecommitdiff
path: root/pkg/vpn/bonafide/auth_sip.go
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-03-18 01:19:55 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-05-04 14:58:39 +0200
commitd2b276be15f676873238fc0b73af60e938bd5e76 (patch)
treecbfbf6656670ba1215143df3d311d72869f5a206 /pkg/vpn/bonafide/auth_sip.go
parent399360bd48c7690f57d68eb67818bc26065748eb (diff)
remove ugly on/off buttons
Diffstat (limited to 'pkg/vpn/bonafide/auth_sip.go')
-rw-r--r--pkg/vpn/bonafide/auth_sip.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/pkg/vpn/bonafide/auth_sip.go b/pkg/vpn/bonafide/auth_sip.go
index cc9d967..f44954e 100644
--- a/pkg/vpn/bonafide/auth_sip.go
+++ b/pkg/vpn/bonafide/auth_sip.go
@@ -52,9 +52,8 @@ func (a *sipAuthentication) getToken(user, password string) ([]byte, error) {
log.Println("ERROR: failed auth request", err)
if os.IsTimeout(err) {
return nil, fmt.Errorf("TokenErrTimeout")
- } else {
- return nil, fmt.Errorf("TokenErrBadPost")
}
+ return nil, fmt.Errorf("TokenErrBadPost")
}
defer resp.Body.Close()
if resp.StatusCode != 200 {