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

[feat] most args are moved to the helper

parent db38eb6d
No related branches found
No related tags found
No related merge requests found
......@@ -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...)
}
......
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