{"record":{"id":"57a3513165050fb3","repo":"XTLS/Xray-core","slug":"proxysettings-tag-is-conflicted-with-sockopt-diale","errorCode":null,"errorMessage":"proxySettings.tag is conflicted with sockopt.dialerProxy","messagePattern":"proxySettings\\.tag is conflicted with sockopt\\.dialerProxy","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"infra/conf/xray.go","lineNumber":229,"sourceCode":"}\n\ntype OutboundDetourConfig struct {\n\tProtocol       string           `json:\"protocol\"`\n\tSendThrough    *string          `json:\"sendThrough\"`\n\tTag            string           `json:\"tag\"`\n\tSettings       *json.RawMessage `json:\"settings\"`\n\tStreamSetting  *StreamConfig    `json:\"streamSettings\"`\n\tProxySettings  *ProxyConfig     `json:\"proxySettings\"`\n\tMuxSettings    *MuxConfig       `json:\"mux\"`\n\tTargetStrategy string           `json:\"targetStrategy\"`\n}\n\nfunc (c *OutboundDetourConfig) checkChainProxyConfig() error {\n\tif c.StreamSetting == nil || c.ProxySettings == nil || c.StreamSetting.SocketSettings == nil {\n\t\treturn nil\n\t}\n\tif len(c.ProxySettings.Tag) > 0 && len(c.StreamSetting.SocketSettings.DialerProxy) > 0 {\n\t\treturn errors.New(\"proxySettings.tag is conflicted with sockopt.dialerProxy\").AtWarning()\n\t}\n\treturn nil\n}\n\nfunc requiresTransportSecurity(address *Address) bool {\n\tif address == nil || address.Address == nil {\n\t\treturn false\n\t}\n\tif address.Family().IsIP() {\n\t\treturn !geodata.GetPrivateIPMatcher().Match(address.IP())\n\t}\n\tdomain := strings.TrimSuffix(strings.ToLower(address.Domain()), \".\")\n\treturn !geodata.GetPrivateDomainMatcher().MatchAny(domain)\n}\n\nfunc validateOutboundTransportSecurity(rawConfig interface{}, senderSettings *proxyman.SenderConfig) error {\n\tif senderSettings.StreamSettings != nil && senderSettings.StreamSettings.GetSecurityType() != \"\" {\n\t\treturn nil","sourceCodeStart":211,"sourceCodeEnd":247,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/infra/conf/xray.go#L211-L247","documentation":"Error \"proxySettings.tag is conflicted with sockopt.dialerProxy\" thrown in XTLS/Xray-core.","triggerScenarios":"Thrown at infra/conf/xray.go:229 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d214f8b094f75322fa3990f8aadad1c912f24f5","analyzedAt":"2026-08-15T14:26:24.325Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}