代码提交
This commit is contained in:
1 parent
5e953c9fcb
commit
bf42a48fcc
16 files changed
+716
-1560
No files matched your search
+3
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user