fix: useful Docker bind address output in serve

When binding to 0.0.0.0 (--host 0.0.0.0), print "localhost" and
"<host-ip>" URLs instead of the raw 0.0.0.0 address. Also handles
nil TCPAddr.IP to avoid the ":::" garbled display in Docker.
This commit is contained in:
2026-06-21 22:00:27 -07:00
parent ca0cd10436
commit 4c09fb8d9b
2 changed files with 14 additions and 8 deletions
+1 -5
View File
@@ -45,10 +45,6 @@ electron-build-linux: build akaiutil
# ─── Server / remote ───────────────────────────────────────
install: build
scp $(BIN) $(REMOTE):/tmp/$(BIN) && \
ssh $(REMOTE) "sudo mv /tmp/$(BIN) /DATA/Downloads/akai/$(BIN) && sudo chmod +x /DATA/Downloads/akai/$(BIN)"
clean:
rm -f $(BIN)
rm -rf $(ELECTRON_DIR)/dist
@@ -57,4 +53,4 @@ clean:
.PHONY: build akaiutil all docker docker-run docker-up docker-down serve \
electron-deps electron-dev electron-build electron-build-mac electron-build-linux \
install clean
clean