{"record":{"id":"c8c3946e777c5607","repo":"XTLS/Xray-core","slug":"not-an-inbound-proxy","errorCode":null,"errorMessage":"not an inbound proxy.","messagePattern":"not an inbound proxy\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/proxyman/inbound/always.go","lineNumber":82,"sourceCode":"\tif receiverConfig.PortList != nil && len(receiverConfig.PortList.Range) > 0 {\n\t\tsrc.Port = net.Port(receiverConfig.PortList.Range[0].From)\n\t}\n\tmss, err := internet.ToMemoryStreamConfig(receiverConfig.StreamSettings)\n\tif err != nil {\n\t\treturn nil, errors.New(\"failed to parse stream config\").Base(err).AtWarning()\n\t}\n\n\tnewCtx := session.ContextWithInbound(ctx, &session.Inbound{Tag: tag, Source: src})\n\tnewCtx = session.ContextWithContent(newCtx, &session.Content{SniffingRequest: sniffingRequest})\n\tnewCtx = session.ContextWithStreamSettings(newCtx, mss)\n\n\trawProxy, err := common.CreateObject(newCtx, proxyConfig)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tp, ok := rawProxy.(proxy.Inbound)\n\tif !ok {\n\t\treturn nil, errors.New(\"not an inbound proxy.\")\n\t}\n\n\th := &AlwaysOnInboundHandler{\n\t\treceiverConfig: receiverConfig,\n\t\tproxyConfig:    proxyConfig,\n\t\tproxy:          p,\n\t\tmux:            mux.NewServer(ctx),\n\t\ttag:            tag,\n\t}\n\n\tuplinkCounter, downlinkCounter := getStatCounter(core.MustFromContext(ctx), tag)\n\n\tnl := p.Network()\n\tpl := receiverConfig.PortList\n\taddress := receiverConfig.Listen.AsAddress()\n\tif address == nil {\n\t\taddress = net.AnyIP\n\t}","sourceCodeStart":64,"sourceCodeEnd":100,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/app/proxyman/inbound/always.go#L64-L100","documentation":"Error \"not an inbound proxy.\" thrown in XTLS/Xray-core.","triggerScenarios":"Thrown at app/proxyman/inbound/always.go:82 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-15T17:31:12.345Z"}