mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-03-22 13:47:19 +08:00
@@ -489,8 +489,9 @@ class DockerRuntime(ActionExecutionClient):
|
||||
def web_hosts(self):
|
||||
hosts: dict[str, int] = {}
|
||||
|
||||
host_addr = os.environ.get('DOCKER_HOST_ADDR', 'localhost')
|
||||
for port in self._app_ports:
|
||||
hosts[f'http://localhost:{port}'] = port
|
||||
hosts[f'http://{host_addr}:{port}'] = port
|
||||
|
||||
return hosts
|
||||
|
||||
|
||||
Reference in New Issue
Block a user