Skip to content
Snippets Groups Projects
Verified Commit 14578be0 authored by meskio's avatar meskio :tent:
Browse files

[feat] pass the right windows args to openvpn

parent a858e94f
No related branches found
No related tags found
1 merge request!17WIP: [feat] pure go bitmask vpn implemenation
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment