diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2020-10-01 20:45:43 +0200 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2020-10-02 13:28:36 +0200 |
commit | d4e6561f2d65e2deab3a418f55b4ae4d8b6c8457 (patch) | |
tree | 074f245afcafa333e05d1df1d53cb794f41e1a59 /pkg/bitmask | |
parent | f798e3f30b6eb69b3655159f07a27571fb737e2b (diff) |
[bug] remove apiURL from bonafide
it seems this was an attempt to make this injectable for tests, but it
can work by changing config variables too.
Diffstat (limited to 'pkg/bitmask')
-rw-r--r-- | pkg/bitmask/init.go | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/pkg/bitmask/init.go b/pkg/bitmask/init.go index 727d62a..02ee544 100644 --- a/pkg/bitmask/init.go +++ b/pkg/bitmask/init.go @@ -57,6 +57,7 @@ func ConfigureProvider(opts *ProviderOpts) { config.BinaryName = opts.BinaryName config.Auth = opts.Auth config.GeolocationAPI = opts.GeolocationURL + config.APIURL = opts.ApiURL config.CaCert = []byte(opts.CaCert) } @@ -67,10 +68,10 @@ func InitializeLogger() { } } -func initBitmask() (Bitmask, error) { +func initBitmaskVPN() (Bitmask, error) { b, err := vpn.Init() if err != nil { - log.Printf("An error ocurred starting bitmask: %v", err) + log.Printf("An error ocurred starting bitmask vpn: %v", err) } return b, err } @@ -83,7 +84,7 @@ func InitializeBitmask(conf *config.Config) (Bitmask, error) { os.MkdirAll(config.Path, os.ModePerm) } - b, err := initBitmask() + b, err := initBitmaskVPN() if err != nil { return nil, err } |