mirror of https://github.com/fatedier/frp
fix webserver port not being released on frpc svr.Close() (#4896)
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…
Reference in New Issue