diff options
author | kali <kali@leap.se> | 2012-09-03 04:18:15 +0900 |
---|---|---|
committer | kali <kali@leap.se> | 2012-09-03 04:18:15 +0900 |
commit | 090aed5e7c569e07b14d74ca71068a277cc39152 (patch) | |
tree | 55fcb679d00a274925d75b0360b56b0162a3bd41 /src/leap/testing/https_server.py | |
parent | b612f422bf156a3b3927038472ad885b1afa556e (diff) |
basic download cert functionality
Diffstat (limited to 'src/leap/testing/https_server.py')
-rw-r--r-- | src/leap/testing/https_server.py | 5 |
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__": |