mirror of
https://github.com/fatedier/frp.git
synced 2025-07-20 04:39:26 +07:00
server/proxy: simplify the code (#3488)
This commit is contained in:
@ -130,6 +130,7 @@ func (c *Controller) ListenClient(name string, sk string, allowUsers []string) c
|
||||
}
|
||||
c.mu.Lock()
|
||||
defer c.mu.Unlock()
|
||||
// TODO(fatedier): return error if name already exists
|
||||
c.clientCfgs[name] = cfg
|
||||
return cfg.sidCh
|
||||
}
|
||||
|
Reference in New Issue
Block a user