summaryrefslogtreecommitdiff
path: root/pkg/bitmask
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/bitmask')
-rw-r--r--pkg/bitmask/init.go7
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
}