forked from Mxmilu666/frp
all: release resources when proxy closed using privilege mode
This commit is contained in:
@@ -186,6 +186,10 @@ func (p *ProxyServer) Close() {
|
||||
p.CtlConn.Close()
|
||||
}
|
||||
}
|
||||
// if the proxy created by PrivilegeMode, delete it when closed
|
||||
if p.PrivilegeMode {
|
||||
DeleteProxy(p.Name)
|
||||
}
|
||||
p.Unlock()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user