summaryrefslogtreecommitdiff
path: root/src/leap/services
diff options
context:
space:
mode:
authorIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-06-21 17:35:46 -0300
committerIvan Alejandro <ivanalejandro0@yahoo.com.ar>2013-06-21 17:35:46 -0300
commit1f9acbe3366d08c280b9076274f612efabde3870 (patch)
treeaa1b53e6e31d2e02141e809f478390df16b3aba9 /src/leap/services
parent1a3a708482e442c18613637e04eed54c3418f060 (diff)
Bugfix: return the correct gateway.
After this fix we always returned the first gateway, no matter what the user asked for.
Diffstat (limited to 'src/leap/services')
-rw-r--r--src/leap/services/eip/eipconfig.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/services/eip/eipconfig.py b/src/leap/services/eip/eipconfig.py
index a85fe64a..ff98bf55 100644
--- a/src/leap/services/eip/eipconfig.py
+++ b/src/leap/services/eip/eipconfig.py
@@ -176,7 +176,7 @@ class EIPConfig(BaseConfig):
index = 0
logger.warning("Provided an unknown gateway index %s, " +
"defaulting to 0")
- ip_addr_str = gateways[0]["ip_address"]
+ ip_addr_str = gateways[index]["ip_address"]
try:
ipaddr.IPAddress(ip_addr_str)