diff options
author | Ivan Alejandro <ivanalejandro0@gmail.com> | 2015-03-04 18:03:47 -0300 |
---|---|---|
committer | Ruben Pollan <meskio@sindominio.net> | 2015-03-30 22:42:52 +0200 |
commit | 3cb7948dafe3a9c9a65dcdbd1da1d5405e1ef459 (patch) | |
tree | ddf0f171313e13dd8a776a5119a88ecccd187ec1 /src/leap/bitmask/services/eip/vpnprocess.py | |
parent | 6e8639a480d63acd5c8bc044a8b1ca907c325233 (diff) |
[bug] use ports specified in eip-service.json
Replace the hardcoded port '1194' for the port specified in
eip-service.json.
Choose the best port to use according which one is enabled in the
eip-service.json file
Resolves: #6541
Diffstat (limited to 'src/leap/bitmask/services/eip/vpnprocess.py')
-rw-r--r-- | src/leap/bitmask/services/eip/vpnprocess.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/leap/bitmask/services/eip/vpnprocess.py b/src/leap/bitmask/services/eip/vpnprocess.py index 8dc6021f..3e46418c 100644 --- a/src/leap/bitmask/services/eip/vpnprocess.py +++ b/src/leap/bitmask/services/eip/vpnprocess.py @@ -961,9 +961,11 @@ class VPNProcess(protocol.ProcessProtocol, VPNManager): :rtype: list """ - gateways = self._launcher.get_gateways( + gateways_ports = self._launcher.get_gateways( self._eipconfig, self._providerconfig) - return gateways + + # filter out ports since we don't need that info + return [gateway for gateway, port in gateways_ports] # shutdown |