mirror of
https://github.com/fatedier/frp.git
synced 2024-11-24 11:09:21 +08:00
Merge pull request #231 from LitleCarl/dev
Fix Bug for issure, fix #227
This commit is contained in:
commit
5f20a22b0d
@ -286,7 +286,7 @@ func (p *ProxyServer) Close() {
|
||||
p.Release()
|
||||
|
||||
// if the proxy created by PrivilegeMode, delete it when closed
|
||||
if p.PrivilegeMode && oldStatus != consts.Closed {
|
||||
if p.PrivilegeMode && oldStatus == consts.Working {
|
||||
// NOTE: this will take the global ProxyServerMap's lock
|
||||
// if we only want to release resources, use Release() instead
|
||||
DeleteProxy(p.Name)
|
||||
|
Loading…
Reference in New Issue
Block a user