mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
fix webserver port not being released on frpc svr.Close() (#4896)
This commit is contained in:
parent
f9065a6a78
commit
c3bf952d8f
1 changed files with 4 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue