mirror of
https://github.com/fatedier/frp.git
synced 2025-07-25 14:29:02 +00:00
fix webserver port not being released on frpc svr.Close() (#4896)
This commit is contained in:
parent
f9065a6a78
commit
c3bf952d8f
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user