From 681d80e0a682b715336da6085308410a7bc87c6c Mon Sep 17 00:00:00 2001 From: sawka Date: Mon, 14 Aug 2023 17:04:16 -0700 Subject: [PATCH] force ipv4 listening in local server (consistent ipv4 throughout stack) --- cmd/main-server.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cmd/main-server.go b/cmd/main-server.go index 9baab924..eefea466 100644 --- a/cmd/main-server.go +++ b/cmd/main-server.go @@ -38,10 +38,10 @@ const HttpWriteTimeout = 21 * time.Second const HttpMaxHeaderBytes = 60000 const HttpTimeoutDuration = 21 * time.Second -const MainServerAddr = "localhost:1619" // PromptServer, P=16, S=19, PS=1619 -const WebSocketServerAddr = "localhost:1623" // PromptWebsock, P=16, W=23, PW=1623 -const MainServerDevAddr = "localhost:8090" -const WebSocketServerDevAddr = "localhost:8091" +const MainServerAddr = "127.0.0.1:1619" // PromptServer, P=16, S=19, PS=1619 +const WebSocketServerAddr = "127.0.0.1:1623" // PromptWebsock, P=16, W=23, PW=1623 +const MainServerDevAddr = "127.0.0.1:8090" +const WebSocketServerDevAddr = "127.0.0.1:8091" const WSStateReconnectTime = 30 * time.Second const WSStatePacketChSize = 20