From 249a8844b1aaf2cd2bf6fddc8da10a4defb656d2 Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 26 Feb 2020 19:17:16 +0100 Subject: [bug] use the right http client to fetch the auth --- pkg/vpn/bonafide/bonafide.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg/vpn/bonafide/bonafide.go') diff --git a/pkg/vpn/bonafide/bonafide.go b/pkg/vpn/bonafide/bonafide.go index 4561eb1..87801cc 100644 --- a/pkg/vpn/bonafide/bonafide.go +++ b/pkg/vpn/bonafide/bonafide.go @@ -105,10 +105,10 @@ func New() *Bonafide { b.auth = &sipAuthentication{client, b.getURL("auth")} case "anon": log.Println("Client expects anon auth") - b.auth = &anonymousAuthentication{client} + b.auth = &anonymousAuthentication{} default: log.Println("Client expects invalid auth", auth) - b.auth = &anonymousAuthentication{client} + b.auth = &anonymousAuthentication{} } return b -- cgit v1.2.3