ipv4로 열도록 강제

This commit is contained in:
2023-06-12 10:02:44 +09:00
parent 87874f841d
commit 68228879e5

View File

@ -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)