Creating a connection to 0.0.0.0 fails on windows but not on linux nor mac

This commit is contained in:
Daniel Graña 2018-07-07 10:46:15 -03:00
parent ed068e59b7
commit 0e532e3dd8
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ class MockServer():
time.sleep(0.2)
def url(self, path, is_secure=False):
host = self.http_address
host = self.http_address.replace('0.0.0.0', '127.0.0.1')
if is_secure:
host = self.https_address
return host + path