mirror of
https://github.com/fatedier/frp.git
synced 2025-08-04 20:49:04 +00:00
fix the issue of duplicate xtcp proxies will cause the previous proxy to become ineffective (#3489)
This commit is contained in:
@@ -577,6 +577,11 @@ func (ctl *Control) RegisterProxy(pxyMsg *msg.NewProxy) (remoteAddr string, err
|
||||
}()
|
||||
}
|
||||
|
||||
if ctl.pxyManager.Exist(pxyMsg.ProxyName) {
|
||||
err = fmt.Errorf("proxy [%s] already exists", pxyMsg.ProxyName)
|
||||
return
|
||||
}
|
||||
|
||||
remoteAddr, err = pxy.Run()
|
||||
if err != nil {
|
||||
return
|
||||
|
Reference in New Issue
Block a user