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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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