diff options
author | Ruben Pollan <meskio@sindominio.net> | 2018-06-21 13:32:21 +0200 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2018-06-21 13:32:21 +0200 |
commit | 14578be06da27c9f56675d6a162a160e4fcf233b (patch) | |
tree | 5aebb3398c85a0942a65c4e2daa9c194a90abcac | |
parent | a858e94f602ca0824951d4baff441cd13c594e9e (diff) |
[feat] pass the right windows args to openvpn
-rw-r--r-- | bitmask_go/vpn.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/bitmask_go/vpn.go b/bitmask_go/vpn.go index c62e27c..2a0862b 100644 --- a/bitmask_go/vpn.go +++ b/bitmask_go/vpn.go @@ -17,6 +17,7 @@ package bitmask import ( "path" + "runtime" ) const ( @@ -36,6 +37,10 @@ func (b *Bitmask) StartVPN(provider string) error { } arg := []string{"--nobind", "--verb", "1"} + if runtime.GOOS == "windows" { + arg = append(arg, "--dev", "tun", "--log", `C:\bitmask\openvp.log`) + } + bonafideArgs, err := b.bonafide.getOpenvpnArgs() if err != nil { return err |