From 1ddaa515195a69d11f1a76229bda321800dee6ab Mon Sep 17 00:00:00 2001 From: Kali Kaneko Date: Fri, 2 Mar 2018 01:04:09 +0100 Subject: [bug] do not use tcp4 version for snaps --- src/leap/bitmask/vpn/launcher.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/leap/bitmask/vpn') diff --git a/src/leap/bitmask/vpn/launcher.py b/src/leap/bitmask/vpn/launcher.py index 48146453..890e1862 100644 --- a/src/leap/bitmask/vpn/launcher.py +++ b/src/leap/bitmask/vpn/launcher.py @@ -33,8 +33,7 @@ from leap.bitmask.vpn.utils import force_eval log = Logger() - -flags_STANDALONE = False +IS_SNAP = os.environ.get('SNAP') class VPNLauncherException(Exception): @@ -153,8 +152,12 @@ class VPNLauncher(object): gateways = remotes for ip, port in gateways: - # we're hardcoding tcpv4 for now - args += ['--remote', ip, port, 'tcp4'] + # we're hardcoding tcpv4 for now, but that seems to break in + # the version of openvpn shipped with the snaps. + if IS_SNAP: + args += ['--remote', ip, port, 'tcp'] + else: + args += ['--remote', ip, port, 'tcp4'] args += [ '--client', -- cgit v1.2.3