MCPcopy Create free account
hub / github.com/Tron521/codex-console-temp / get_display_host

Function get_display_host

start_webui.py:184–187  ·  view source on GitHub ↗
(host: str)

Source from the content-addressed store, hash-verified

182
183
184def get_display_host(host: str) -> str:
185 if not host or host in {"0.0.0.0", "::"}:
186 return "127.0.0.1"
187 return host
188
189
190def port_is_available(host: str, port: int) -> bool:

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected