XTLS/Xray-core · error
invalid outbound detour proxy settings
Error message
invalid outbound detour proxy settings
What it means
Outbound detour Build fails building the proxy settings object (ProxySettings.Build); the chained error indicates malformed proxy-protocol configuration such as an invalid transport-layer-proxy combination.
Solutions
- Correct the proxySettings block per the Base error
Defensive patterns
Strategy: validation
When it happens
Trigger: Thrown at infra/conf/xray.go:328 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of XTLS/Xray-core@7d214f8b09 (2026-08-15).
Data as JSON: /api/errors/b63a63c7bf48d3b1.
Report an issue: GitHub.
Appendix: source
Thrown at infra/conf/xray.go:328
return nil, errors.New("unable to send through: " + address.String())
}
}
}
senderSettings.Via = address.Build()
}
if c.StreamSetting != nil {
ss, err := c.StreamSetting.Build()
if err != nil {
return nil, errors.New("failed to build stream settings for outbound detour").Base(err)
}
senderSettings.StreamSettings = ss
}
if c.ProxySettings != nil {
ps, err := c.ProxySettings.Build()
if err != nil {
return nil, errors.New("invalid outbound detour proxy settings").Base(err)
}
if ps.TransportLayerProxy {
if senderSettings.StreamSettings != nil {
if senderSettings.StreamSettings.SocketSettings != nil {
senderSettings.StreamSettings.SocketSettings.DialerProxy = ps.Tag
} else {
senderSettings.StreamSettings.SocketSettings = &internet.SocketConfig{DialerProxy: ps.Tag}
}
} else {
senderSettings.StreamSettings = &internet.StreamConfig{SocketSettings: &internet.SocketConfig{DialerProxy: ps.Tag}}
}
ps = nil
}
senderSettings.ProxySettings = ps
}
if c.MuxSettings != nil {
ms, err := c.MuxSettings.Build()View on GitHub (pinned to 7d214f8b09)