fix webserver port not being released on frpc svr.Close() (#4896)

This commit is contained in:
maguowei
2025-07-24 10:16:44 +08:00
committed by GitHub
parent f9065a6a78
commit c3bf952d8f

View File

@@ -403,6 +403,10 @@ func (svr *Service) stop() {
svr.ctl.GracefulClose(svr.gracefulShutdownDuration)
svr.ctl = nil
}
if svr.webServer != nil {
svr.webServer.Close()
svr.webServer = nil
}
}
func (svr *Service) getProxyStatus(name string) (*proxy.WorkingStatus, bool) {