summaryrefslogtreecommitdiff
path: root/src/leap/testing
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-03 04:18:15 +0900
committerkali <kali@leap.se>2012-09-03 04:18:15 +0900
commit090aed5e7c569e07b14d74ca71068a277cc39152 (patch)
tree55fcb679d00a274925d75b0360b56b0162a3bd41 /src/leap/testing
parentb612f422bf156a3b3927038472ad885b1afa556e (diff)
basic download cert functionality
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__":