ipv4 강제 되돌림
This commit is contained in:
@ -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)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user