mirror of
https://github.com/fatedier/frp.git
synced 2026-05-15 08:05:49 -06:00
Extract closeProxy() helper to eliminate duplicated 4-step cleanup sequence (Close, PxyManager.Del, metrics, plugin notify) between worker() and CloseProxy(). Extract loginUserInfo() helper to eliminate 4 repeated plugin.UserInfo constructions using LoginMsg fields. Optimize worker() to snapshot and clear the proxies map under lock, then perform cleanup outside the lock to reduce lock hold time. |
||
|---|---|---|
| .. | ||
| controller | ||
| group | ||
| http | ||
| metrics | ||
| ports | ||
| proxy | ||
| registry | ||
| visitor | ||
| api_router.go | ||
| control.go | ||
| service.go | ||