From 14578be06da27c9f56675d6a162a160e4fcf233b Mon Sep 17 00:00:00 2001 From: Ruben Pollan Date: Thu, 21 Jun 2018 13:32:21 +0200 Subject: [feat] pass the right windows args to openvpn --- bitmask_go/vpn.go | 5 +++++ 1 file changed, 5 insertions(+) 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 -- cgit v1.2.3