Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.
fix: resolve OpenClaw gateway launch timeout on Windows by enforcing IPv4 loopback (#15726)
Pratham Agarwal8f39fff70bac
diff --git a/cmd/launch/openclaw.go b/cmd/launch/openclaw.goindex 187a61df4..5eb37072f 100644--- a/cmd/launch/openclaw.go+++ b/cmd/launch/openclaw.go@@ -165,7 +165,7 @@ func shouldEnsureGatewayForArgs(args []string) bool {func (c *Openclaw) ensureGatewayReady(bin string) (func(), string, int, error) {token, port := c.gatewayInfo()- addr := fmt.Sprintf("localhost:%d", port)+ addr := fmt.Sprintf("127.0.0.1:%d", port)// If the gateway is already running (e.g. via the daemon), restart it// so it picks up any config changes (model, provider, etc.).@@ -341,7 +341,7 @@ func (c *Openclaw) gatewayInfo() (token string, port int) {}func printOpenclawReady(bin, token string, port int, firstLaunch bool) {- u := fmt.Sprintf("http://localhost:%d", port)+ u := fmt.Sprintf("http://127.0.0.1:%d", port)if token != "" {u += "/#token=" + url.QueryEscape(token)}diff --git a/cmd/launch/openclaw_test.go b/cmd/launch/openclaw_test.goindex ffbfbb142..cf49b15d3 100644--- a/cmd/launch/openclaw_test.go+++ b/cmd/launch/openclaw_test.go@@ -2135,7 +2135,7 @@ func TestPrintOpenclawReady(t *testing.T) {buf.ReadFrom(r)output := buf.String()- if !strings.Contains(output, "localhost:9999") {+ if !strings.Contains(output, "127.0.0.1:9999") {t.Errorf("expected port 9999 in output, got:\n%s", output)}if strings.Contains(output, "#token=") {