From 2a09102e23183bf5b0cb9fcf5c4fa3348c21e0e2 Mon Sep 17 00:00:00 2001 From: Paul Payne Date: Thu, 9 Jul 2026 01:11:25 +0000 Subject: [PATCH] feat: Add configurable API port via WILD_CENTRAL_PORT env var Allow overriding the default API port (5055) for development and testing when the production daemon is already running. Co-Authored-By: Claude Opus 4.6 (1M context) --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index e282f9a..76c9457 100644 --- a/main.go +++ b/main.go @@ -146,6 +146,9 @@ func main() { host := "0.0.0.0" port := 5055 + if v := os.Getenv("WILD_CENTRAL_PORT"); v != "" { + fmt.Sscanf(v, "%d", &port) + } addr := fmt.Sprintf("%s:%d", host, port) slog.Info("wild-central started", "addr", addr, "version", Version)