diff --git a/modules/http_proxy_base.go b/modules/http_proxy_base.go index 9d88332c..9720866b 100644 --- a/modules/http_proxy_base.go +++ b/modules/http_proxy_base.go @@ -340,6 +340,7 @@ func (p *HTTPProxy) Start() { } if err != nil { + p.Server.Shutdown(nil) log.Fatal("%s", err) } }()