diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-07-18 21:23:12 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-07-19 12:57:19 +0200 |
commit | 42ed17e9302562e14169031ca2c1fc6eb1a49f3b (patch) | |
tree | d3134e8bcf8355fc6fc71b97844bda0d425cda2c | |
parent | db38eb6dd6e574dfd5ec55d90dd160f067620e0b (diff) |
[feat] most args are moved to the helper
-rw-r--r-- | standalone/vpn.go | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/standalone/vpn.go b/standalone/vpn.go index 44fa768..fddda6e 100644 --- a/standalone/vpn.go +++ b/standalone/vpn.go @@ -17,7 +17,6 @@ package bitmask import ( "path" - "runtime" ) const ( @@ -45,21 +44,12 @@ func (b *Bitmask) StartVPN(provider string) error { } certPemPath := b.getCertPemPath() arg = append(arg, - "--nobind", "--verb", "1", - "--dev", "tun", - "--client", - "--tls-client", - "--remote-cert-tls", "server", - "--script-security", "1", "--management-client", "--management", openvpnManagementAddr, openvpnManagementPort, "--ca", b.getCaCertPath(), "--cert", certPemPath, "--key", certPemPath) - if runtime.GOOS == "windows" { - arg = append(arg, "--log", `C:\bitmask\openvp.log`) - } return b.launch.openvpnStart(arg...) } |