Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Tron521/codex-console-temp
/ _get_display_host
Function
_get_display_host
webui.py:72–76 ·
view source on GitHub ↗
将监听地址转换为更适合展示给本地用户的访问地址。
(host: str)
Source
from the content-addressed store, hash-verified
70
71
72
def
_get_display_host(host: str) -> str:
73
""
"将监听地址转换为更适合展示给本地用户的访问地址。"
""
74
if
host in (
""
,
"0.0.0.0"
,
"::"
):
75
return
"127.0.0.1"
76
return
host
77
78
79
def
setup_application():
Callers
1
start_webui
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected