From 42ed17e9302562e14169031ca2c1fc6eb1a49f3b Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Wed, 18 Jul 2018 21:23:12 +0200 Subject: [feat] most args are moved to the helper --- standalone/vpn.go | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'standalone/vpn.go') 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...) } -- cgit v1.2.3