{"record":{"id":"8974084d2dfe61b5","repo":"XTLS/Xray-core","slug":"unable-to-send-through-address-string","errorCode":null,"errorMessage":"unable to send through: {address.String()}","messagePattern":"unable to send through: (.+?)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"infra/conf/xray.go","lineNumber":310,"sourceCode":"\tcase \"forceipv6v4\":\n\t\tsenderSettings.TargetStrategy = internet.DomainStrategy_FORCE_IP64\n\tdefault:\n\t\treturn nil, errors.New(\"unsupported target domain strategy: \", c.TargetStrategy)\n\t}\n\tif err := c.checkChainProxyConfig(); err != nil {\n\t\treturn nil, err\n\t}\n\n\tif c.SendThrough != nil {\n\t\taddress := ParseSendThough(c.SendThrough)\n\t\t// Check if CIDR exists\n\t\tif strings.Contains(*c.SendThrough, \"/\") {\n\t\t\tsenderSettings.ViaCidr = strings.Split(*c.SendThrough, \"/\")[1]\n\t\t} else {\n\t\t\tif address.Family().IsDomain() {\n\t\t\t\tdomain := address.Address.Domain()\n\t\t\t\tif domain != \"origin\" && domain != \"srcip\" {\n\t\t\t\t\treturn nil, errors.New(\"unable to send through: \" + address.String())\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tsenderSettings.Via = address.Build()\n\t}\n\n\tif c.StreamSetting != nil {\n\t\tss, err := c.StreamSetting.Build()\n\t\tif err != nil {\n\t\t\treturn nil, errors.New(\"failed to build stream settings for outbound detour\").Base(err)\n\t\t}\n\t\tsenderSettings.StreamSettings = ss\n\t}\n\n\tif c.ProxySettings != nil {\n\t\tps, err := c.ProxySettings.Build()\n\t\tif err != nil {\n\t\t\treturn nil, errors.New(\"invalid outbound detour proxy settings\").Base(err)","sourceCodeStart":292,"sourceCodeEnd":328,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/infra/conf/xray.go#L292-L328","documentation":"Validation in OutboundDetourConfig.Build for sendThrough: the address (non-CIDR form) is a domain name other than the special values 'origin' or 'srcip' — sendThrough must be an IP (optionally with /CIDR) or those two keywords.","triggerScenarios":"Thrown at infra/conf/xray.go:310 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set sendThrough to a local IP like \"192.0.2.1\" or \"192.0.2.0/24\", or \"origin\"/\"srcip\""],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7d214f8b094f75322fa3990f8aadad1c912f24f5","analyzedAt":"2026-08-15T14:26:24.325Z","contentChangedAt":"2026-08-15T14:26:24.325Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}