bind the gaia read endpoint on the environment-given host

This commit is contained in:
Jude Nelson
2018-04-30 09:40:11 -04:00
parent fab0301701
commit 1f27e31b18

View File

@@ -464,7 +464,7 @@ class GaiaServerRequestHandler(BaseHTTPServer.BaseHTTPRequestHandler):
class GaiaServer(BaseHTTPServer.HTTPServer):
def __init__(self, storage_root, port, upstream_gaia_url):
BaseHTTPServer.HTTPServer.__init__(self, ('localhost', port), GaiaServerRequestHandler)
BaseHTTPServer.HTTPServer.__init__(self, (TEST_CLIENT_BIND, port), GaiaServerRequestHandler)
self.storage_root = storage_root
self.done = False
self.upstream_gaia_url = upstream_gaia_url