avoid conflicts between reserved provider name with common names

This commit is contained in:
ForestL18 2025-02-24 00:11:04 +08:00
parent 5830afcbde
commit ba0319e5b6
2 changed files with 2 additions and 2 deletions

View file

@ -24,7 +24,7 @@ import (
)
const (
ReservedName = "default"
ReservedName = "__internal_default_provider"
)
type ProxySchema struct {

View file

@ -916,7 +916,7 @@ func parseProxies(cfg *RawConfig) (proxies map[string]C.Proxy, providersMap map[
}
hc := provider.NewHealthCheck(ps, "", 5000, 0, true, nil)
pd, _ := provider.NewCompatibleProvider(provider.ReservedName, ps, hc)
providersMap[provider.ReservedName] = pd
// providersMap[provider.ReservedName] = pd
if !hasGlobal {
global := outboundgroup.NewSelector(