summaryrefslogtreecommitdiff
path: root/pkg/vpn
diff options
context:
space:
mode:
authorkali kaneko (leap communications) <kali@leap.se>2021-12-13 18:02:16 +0100
committerkali kaneko (leap communications) <kali@leap.se>2021-12-13 18:02:16 +0100
commitd0eeb901a0fd0c787289dc5beae6ed0e66905c42 (patch)
tree19ba1547828c1a8af792ed349054f1f828c20995 /pkg/vpn
parent2aee25a1dff193a86f2a2cc1ae57cf86488dfdb4 (diff)
[bug] initialize openvpn args for obfs4
Diffstat (limited to 'pkg/vpn')
-rw-r--r--pkg/vpn/openvpn.go4
1 files changed, 1 insertions, 3 deletions
diff --git a/pkg/vpn/openvpn.go b/pkg/vpn/openvpn.go
index 3a76bd8..d0fadc1 100644
--- a/pkg/vpn/openvpn.go
+++ b/pkg/vpn/openvpn.go
@@ -120,7 +120,7 @@ func (b *Bitmask) listenShapeErr() {
}
func (b *Bitmask) startOpenVPN() error {
- arg := []string{}
+ arg := b.openvpnArgs
b.statusCh <- Starting
if b.GetTransport() == "obfs4" {
gateways, err := b.bonafide.GetGateways("obfs4")
@@ -145,11 +145,9 @@ func (b *Bitmask) startOpenVPN() error {
}
proxyArgs := strings.Split(proxy, ":")
- // TODO pass UDP flag
arg = append(arg, "--remote", proxyArgs[0], proxyArgs[1], "tcp4")
arg = append(arg, "--route", gw.IPAddress, "255.255.255.255", "net_gateway")
} else {
- arg = b.openvpnArgs
log.Println("args passed to bitmask-root:", arg)
gateways, err := b.bonafide.GetGateways("openvpn")
if err != nil {