ipv4 강제 되돌림

This commit is contained in:
2023-06-12 10:07:45 +09:00
parent 68228879e5
commit 4e2b0ea155

View File

@ -96,7 +96,7 @@ func NewHTTPServerWithPort(serveMux *http.ServeMux, port int) *Server {
if len(*tls) > 0 && port == 80 { if len(*tls) > 0 && port == 80 {
port = 443 port = 443
} }
addr := fmt.Sprintf("0.0.0.0:%d", port) addr := fmt.Sprintf(":%d", port)
serveMux.HandleFunc(MakeHttpHandlerPattern("welcome"), welcomeHandler) serveMux.HandleFunc(MakeHttpHandlerPattern("welcome"), welcomeHandler)
serveMux.HandleFunc(MakeHttpHandlerPattern("lb_health_chceck"), healthCheckHandler) serveMux.HandleFunc(MakeHttpHandlerPattern("lb_health_chceck"), healthCheckHandler)