代码提交

This commit is contained in:
董宏凯 committed 2026-09-06 20:25:14 +08:00
1 parent 5e953c9fcb
commit bf42a48fcc
16 files changed
+716 -1560

No files matched your search

+3 -1
View File
@@ -15,7 +15,9 @@ FRONTEND_PORT="${FRONTEND_PORT:-5174}"
detect_host_ip() {
if command -v hostname >/dev/null 2>&1; then
hostname -I 2>/dev/null | awk '{print $1}'
# `hostname -I` is unsupported on Windows Git Bash; `|| true` keeps the
# pipefail-safe fallback (HOST_IP then defaults to 127.0.0.1 below).
hostname -I 2>/dev/null | awk '{print $1}' || true
fi
}