mirror of
https://github.com/fatedier/frp.git
synced 2026-01-11 22:23:12 +00:00
frps: release resources in service.Close() (#4667)
This commit is contained in:
@@ -59,3 +59,13 @@ type ResourceController struct {
|
||||
// All server manager plugin
|
||||
PluginManager *plugin.Manager
|
||||
}
|
||||
|
||||
func (rc *ResourceController) Close() error {
|
||||
if rc.VhostHTTPSMuxer != nil {
|
||||
rc.VhostHTTPSMuxer.Close()
|
||||
}
|
||||
if rc.TCPMuxHTTPConnectMuxer != nil {
|
||||
rc.TCPMuxHTTPConnectMuxer.Close()
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user