summaryrefslogtreecommitdiff
path: root/bitmask_go/vpn.go
diff options
context:
space:
mode:
Diffstat (limited to 'bitmask_go/vpn.go')
-rw-r--r--bitmask_go/vpn.go5
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