summaryrefslogtreecommitdiff
path: root/src/leap/testing
diff options
context:
space:
mode:
Diffstat (limited to 'src/leap/testing')
-rw-r--r--src/leap/testing/https_server.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/leap/testing/https_server.py b/src/leap/testing/https_server.py
index 18fc0da8..21191c32 100644
--- a/src/leap/testing/https_server.py
+++ b/src/leap/testing/https_server.py
@@ -58,7 +58,10 @@ class BaseHTTPSServerTestCase(unittest.TestCase):
self.thread.stop()
def get_server(self):
- return "%s:%s" % (self.HOST, self.PORT)
+ host, port = self.HOST, self.PORT
+ if host == "127.0.0.1":
+ host = "localhost"
+ return "%s:%s" % (host, port)
if __name__ == "__main__":