fix(bootstrap): print the address nano binds in the install summary

summary_nano printed the node's primary IP for every non-loopback bind
and 127.0.0.1 for every loopback one. A bind to a second private
address, or to [::1], handed the operator a hasJoined URL that nothing
listens on.

The host is now the part of FELIS_NANO_LISTEN before the last ':'. The
node's IP is used only for a wildcard bind (empty, 0.0.0.0 or [::]),
which names no address a proxy could dial. The loopback and
public-bind notes are unchanged.
This commit is contained in:
flyemoji committed 2026-09-22 13:52:18 +09:00
1 parent 404d1172a6
commit 3b0fc7a3e0
2 files changed
+36 -2

No files matched your search

+3 -2
View File
@@ -2428,8 +2428,9 @@ EOF
}
summary_nano() {
local port="${FELIS_NANO_LISTEN##*:}" host
if nano_listen_is_loopback; then host="127.0.0.1"; else host="${NODE_IP}"; fi
local port="${FELIS_NANO_LISTEN##*:}" host="${FELIS_NANO_LISTEN%:*}"
# A wildcard bind names no address a proxy could dial; the node's own is the useful one.
case "$host" in ""|0.0.0.0|"[::]") host="${NODE_IP}" ;; esac
echo
ok "Felis-nano deployed."
echo