forked from Mxmilu666/frp
chore(ci): update Go version and golangci-lint version
feat(linter): add new linters G118 and G704 refactor(proxy): optimize proxy status slice initialization fix(api): clarify comment regarding URL construction fix(deps): upgrade github.com/hashicorp/yamux to v0.1.2 docs(flags): improve DNS server flag description refactor(controller): simplify port range return logic refactor(featuregate): optimize enabled features string conversion
This commit is contained in:
@@ -118,9 +118,9 @@ func (pm *Manager) HandleEvent(payload any) error {
|
||||
}
|
||||
|
||||
func (pm *Manager) GetAllProxyStatus() []*WorkingStatus {
|
||||
ps := make([]*WorkingStatus, 0)
|
||||
pm.mu.RLock()
|
||||
defer pm.mu.RUnlock()
|
||||
ps := make([]*WorkingStatus, 0, len(pm.proxies))
|
||||
for _, pxy := range pm.proxies {
|
||||
ps = append(ps, pxy.GetStatus())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user