chore: restful api contains providerChains for connections

This commit is contained in:
wwqgtxx
2025-12-04 17:29:01 +08:00
parent d2007fdc22
commit 6539b509cb
4 changed files with 21 additions and 3 deletions

View File

@@ -156,7 +156,7 @@ func (pp *proxySetProvider) Initial() error {
func (pp *proxySetProvider) closeAllConnections() {
statistic.DefaultManager.Range(func(c statistic.Tracker) bool {
for _, chain := range c.Chains() {
for _, chain := range c.ProviderChains() {
if chain == pp.Name() {
_ = c.Close()
break