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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user