From 68228879e577de0bca277745a0c371f710e32434 Mon Sep 17 00:00:00 2001 From: mountain Date: Mon, 12 Jun 2023 10:02:44 +0900 Subject: [PATCH] =?UTF-8?q?ipv4=EB=A1=9C=20=EC=97=B4=EB=8F=84=EB=A1=9D=20?= =?UTF-8?q?=EA=B0=95=EC=A0=9C?= 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 a4c29c2..e04bb83 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(":%d", port) + addr := fmt.Sprintf("0.0.0.0:%d", port) serveMux.HandleFunc(MakeHttpHandlerPattern("welcome"), welcomeHandler) serveMux.HandleFunc(MakeHttpHandlerPattern("lb_health_chceck"), healthCheckHandler)