diff --git a/adapter/outboundgroup/parser.go b/adapter/outboundgroup/parser.go index 464068559..d5ce72888 100644 --- a/adapter/outboundgroup/parser.go +++ b/adapter/outboundgroup/parser.go @@ -42,10 +42,6 @@ type GroupCommonOption struct { IncludeAllProviders bool `group:"include-all-providers,omitempty"` Hidden bool `group:"hidden,omitempty"` Icon string `group:"icon,omitempty"` - - // removed configs, only for error logging - Interface string `group:"interface-name,omitempty"` - RoutingMark int `group:"routing-mark,omitempty"` } func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy, providersMap map[string]P.ProxyProvider, AllProxies []string, AllProviders []string) (C.ProxyAdapter, error) { @@ -62,12 +58,15 @@ func ParseProxyGroup(config map[string]any, proxyMap map[string]C.Proxy, provide return nil, errFormat } - if groupOption.RoutingMark != 0 { + if _, ok := config["routing-mark"]; ok { log.Errorln("The group [%s] with routing-mark configuration was removed, please set it directly on the proxy instead", groupOption.Name) } - if groupOption.Interface != "" { + if _, ok := config["interface-name"]; ok { log.Errorln("The group [%s] with interface-name configuration was removed, please set it directly on the proxy instead", groupOption.Name) } + if _, ok := config["dialer-proxy"]; ok { + log.Errorln("The group [%s] with dialer-proxy configuration is not allowed, please set it directly on the proxy instead", groupOption.Name) + } groupName := groupOption.Name