msg: new message CloseProxy
This commit is contained in:
1 parent
5b303f5148
commit
fca7f42b37
3 files changed
+35
-3
No files matched your search
@@ -358,6 +358,9 @@ func (ctl *Control) manager() {
|
||||
pxy := NewProxy(ctl, cfg)
|
||||
if err := pxy.Run(); err != nil {
|
||||
ctl.Warn("[%s] proxy start running error: %v", m.ProxyName, err)
|
||||
ctl.sendCh <- &msg.CloseProxy{
|
||||
ProxyName: m.ProxyName,
|
||||
}
|
||||
continue
|
||||
}
|
||||
ctl.proxies[m.ProxyName] = pxy
|
||||
|
||||
Reference in new issue
Block a user