From 4e2b0ea155b75d6b1e38825645dc6e62e72abf88 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 12 Jun 2023 10:07:45 +0900 Subject: [PATCH] =?UTF-8?q?ipv4=20=EA=B0=95=EC=A0=9C=20=EB=90=98=EB=8F=8C?= =?UTF-8?q?=EB=A6=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index e04bb83..a4c29c2 100644 --- a/server.go +++ b/server.go @@ -96,7 +96,7 @@ func NewHTTPServerWithPort(serveMux *http.ServeMux, port int) *Server { if len(*tls) > 0 && port == 80 { port = 443 } - addr := fmt.Sprintf("0.0.0.0:%d", port) + addr := fmt.Sprintf(":%d", port) serveMux.HandleFunc(MakeHttpHandlerPattern("welcome"), welcomeHandler) serveMux.HandleFunc(MakeHttpHandlerPattern("lb_health_chceck"), healthCheckHandler)