summaryrefslogtreecommitdiff
path: root/src/leap/bitmask/vpn/manager.py
diff options
context:
space:
mode:
authorRuben Pollan <meskio@sindominio.net>2017-03-17 00:44:00 +0100
committerRuben Pollan <meskio@sindominio.net>2017-03-17 19:13:23 +0100
commit1d09d1a079f8ce577de13ab43c2e9add7a6247bc (patch)
treea84d324912b13b68c9990a515267f0973cf289b3 /src/leap/bitmask/vpn/manager.py
parent09bf881b4f457f731c5a49e88822bc731eda2c96 (diff)
[bug] let's remove hardcoded providers
Diffstat (limited to 'src/leap/bitmask/vpn/manager.py')
-rw-r--r--src/leap/bitmask/vpn/manager.py8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/leap/bitmask/vpn/manager.py b/src/leap/bitmask/vpn/manager.py
index 88d10bb7..66fc3d50 100644
--- a/src/leap/bitmask/vpn/manager.py
+++ b/src/leap/bitmask/vpn/manager.py
@@ -32,7 +32,8 @@ from .constants import IS_WIN
class TunnelManager(object):
- def __init__(self, remotes, cert_path, key_path, ca_path, extra_flags):
+ def __init__(self, provider, remotes, cert_path, key_path, ca_path,
+ extra_flags):
"""
Initialize the VPNManager object.
@@ -48,13 +49,10 @@ class TunnelManager(object):
ports = []
- # TODO fix hardcoding
- domain = "demo.bitmask.net"
-
self._remotes = remotes
self._vpnconfig = _TempVPNConfig(extra_flags, cert_path, ports)
- self._providerconfig = _TempProviderConfig(domain, ca_path)
+ self._providerconfig = _TempProviderConfig(provider, ca_path)
host, port = self._get_management_location()
self._vpn = VPNControl(remotes=remotes,