mirror of
https://github.com/fatedier/frp.git
synced 2025-09-26 21:25:53 +08:00
fix webserver port not being released on frpc svr.Close() (#4896)
This commit is contained in:
@@ -403,6 +403,10 @@ func (svr *Service) stop() {
|
|||||||
svr.ctl.GracefulClose(svr.gracefulShutdownDuration)
|
svr.ctl.GracefulClose(svr.gracefulShutdownDuration)
|
||||||
svr.ctl = nil
|
svr.ctl = nil
|
||||||
}
|
}
|
||||||
|
if svr.webServer != nil {
|
||||||
|
svr.webServer.Close()
|
||||||
|
svr.webServer = nil
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
func (svr *Service) getProxyStatus(name string) (*proxy.WorkingStatus, bool) {
|
func (svr *Service) getProxyStatus(name string) (*proxy.WorkingStatus, bool) {
|
||||||
|
Reference in New Issue
Block a user