diff options
author | kali kaneko (leap communications) <kali@leap.se> | 2021-12-13 18:02:16 +0100 |
---|---|---|
committer | kali kaneko (leap communications) <kali@leap.se> | 2021-12-13 18:02:16 +0100 |
commit | d0eeb901a0fd0c787289dc5beae6ed0e66905c42 (patch) | |
tree | 19ba1547828c1a8af792ed349054f1f828c20995 /pkg | |
parent | 2aee25a1dff193a86f2a2cc1ae57cf86488dfdb4 (diff) |
[bug] initialize openvpn args for obfs4
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/vpn/openvpn.go | 4 |
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 { |