XTLS/Xray-core · error
not an outbound handler
Error message
not an outbound handler
What it means
Error "not an outbound handler" thrown in XTLS/Xray-core.
Source
Thrown at app/proxyman/outbound/handler.go:120
proxyConfig, err := config.ProxySettings.GetInstance()
if err != nil {
return nil, err
}
h.proxyConfig = proxyConfig
ctx = session.ContextWithFullHandler(ctx, h)
newCtx := session.ContextWithStreamSettings(ctx, h.streamSettings)
rawProxyHandler, err := common.CreateObject(newCtx, proxyConfig)
if err != nil {
return nil, err
}
proxyHandler, ok := rawProxyHandler.(proxy.Outbound)
if !ok {
return nil, errors.New("not an outbound handler")
}
if h.senderSettings != nil && h.senderSettings.MultiplexSettings != nil {
if config := h.senderSettings.MultiplexSettings; config.Enabled {
if config.Concurrency < 0 {
h.mux = &mux.ClientManager{Enabled: false}
}
if config.Concurrency == 0 {
config.Concurrency = 8 // same as before
}
if config.Concurrency > 0 {
h.mux = &mux.ClientManager{
Enabled: true,
Picker: &mux.IncrementalWorkerPicker{
Factory: &mux.DialingWorkerFactory{
Proxy: proxyHandler,
Dialer: h,
Strategy: mux.ClientStrategy{View on GitHub (pinned to 7d214f8b09)
When it happens
Trigger: Thrown at app/proxyman/outbound/handler.go:120 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/c25065b4039f9884.
Report an issue: GitHub.