diff options
author | Ruben Pollan <meskio@sindominio.net> | 2019-01-15 17:19:19 +0100 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2019-01-15 17:26:06 +0100 |
commit | 52d7fa7c91dd5bad49f07e33956681b5e341c6fa (patch) | |
tree | 0cd14b39203ef5652ee2c76ac27320db4abb4ef8 /cmd | |
parent | 80b6aef1206fb63f1a2985f003f6b484a23bb949 (diff) |
[feat] move provider configuration into a set of constants
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/bitmask-connect/main.go | 6 | ||||
-rw-r--r-- | cmd/bitmask-vpn/main.go | 6 |
2 files changed, 4 insertions, 8 deletions
diff --git a/cmd/bitmask-connect/main.go b/cmd/bitmask-connect/main.go index e418112..158f422 100644 --- a/cmd/bitmask-connect/main.go +++ b/cmd/bitmask-connect/main.go @@ -23,13 +23,13 @@ import ( "os/signal" "0xacab.org/leap/bitmask-systray/pkg/bitmask" + "0xacab.org/leap/bitmask-systray/pkg/config" "golang.org/x/text/language" "golang.org/x/text/message" ) const ( - provider = "riseup.net" - logFile = "systray.log" + logFile = "systray.log" ) var version string @@ -55,7 +55,7 @@ func start() { } defer b.Close() - err = b.StartVPN(provider) + err = b.StartVPN(config.Provider) if err != nil { log.Println(err) os.Exit(1) diff --git a/cmd/bitmask-vpn/main.go b/cmd/bitmask-vpn/main.go index fb3fd1f..08ccbf1 100644 --- a/cmd/bitmask-vpn/main.go +++ b/cmd/bitmask-vpn/main.go @@ -30,9 +30,7 @@ import ( ) const ( - provider = "riseup.net" - applicationName = "RiseupVPN" - logFile = "systray.log" + logFile = "systray.log" ) var version string @@ -59,8 +57,6 @@ func main() { os.Exit(0) } - conf.Provider = provider - conf.ApplicationName = applicationName conf.Version = version conf.Printer = initPrinter() systray.Run(conf) |