Skip to content

Commit 3ef0a48

Browse files
committed
fix(HTTPLoginServer): Listen on 0.0.0.0 instead of localhost
1 parent c27cbb3 commit 3ef0a48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

naas_python/utils/domains_base/authorization.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ def _start_http_server(self, start_port) -> AuthenticatorBaseServer:
208208
for port in range(start_port, start_port + 1000):
209209
try:
210210
self._server = AuthenticatorBaseServer(
211-
"localhost", self.port, timeout=self._timeout
211+
"0.0.0.0", self.port, timeout=self._timeout
212212
)
213213
logging.debug(f"HTTP server started on port {self.port}.")
214214
self._redirect_uri = f"http://localhost:{port}"

0 commit comments

Comments
 (0)