mirror of
https://github.com/MetaCubeX/Clash.Meta.git
synced 2025-04-11 04:50:56 +00:00
avoid conflicts between reserved provider name with common names
This commit is contained in:
parent
5830afcbde
commit
ba0319e5b6
2 changed files with 2 additions and 2 deletions
|
@ -24,7 +24,7 @@ import (
|
|||
)
|
||||
|
||||
const (
|
||||
ReservedName = "default"
|
||||
ReservedName = "__internal_default_provider"
|
||||
)
|
||||
|
||||
type ProxySchema struct {
|
||||
|
|
|
@ -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(
|
||||
|
|
Loading…
Add table
Reference in a new issue