{"record":{"id":"5852c2a0ee5ed058","repo":"XTLS/Xray-core","slug":"not-a-receiverconfig","errorCode":null,"errorMessage":"not a ReceiverConfig","messagePattern":"not a ReceiverConfig","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"app/proxyman/inbound/inbound.go","lineNumber":168,"sourceCode":"\n\treturn nil\n}\n\n// NewHandler creates a new inbound.Handler based on the given config.\nfunc NewHandler(ctx context.Context, config *core.InboundHandlerConfig) (inbound.Handler, error) {\n\trawReceiverSettings, err := config.ReceiverSettings.GetInstance()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tproxySettings, err := config.ProxySettings.GetInstance()\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\ttag := config.Tag\n\n\treceiverSettings, ok := rawReceiverSettings.(*proxyman.ReceiverConfig)\n\tif !ok {\n\t\treturn nil, errors.New(\"not a ReceiverConfig\").AtError()\n\t}\n\n\tstreamSettings := receiverSettings.StreamSettings\n\tif streamSettings != nil && streamSettings.SocketSettings != nil {\n\t\tctx = session.ContextWithSockopt(ctx, &session.Sockopt{\n\t\t\tMark: streamSettings.SocketSettings.Mark,\n\t\t})\n\t}\n\tif streamSettings != nil && streamSettings.ProtocolName == \"splithttp\" {\n\t\tctx = session.ContextWithAllowedNetwork(ctx, net.Network_UDP)\n\t}\n\n\treturn NewAlwaysOnInboundHandler(ctx, tag, receiverSettings, proxySettings)\n}\n\nfunc init() {\n\tcommon.Must(common.RegisterConfig((*proxyman.InboundConfig)(nil), func(ctx context.Context, config interface{}) (interface{}, error) {\n\t\treturn New(ctx, config.(*proxyman.InboundConfig))","sourceCodeStart":150,"sourceCodeEnd":186,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/app/proxyman/inbound/inbound.go#L150-L186","documentation":"Error \"not a ReceiverConfig\" thrown in XTLS/Xray-core.","triggerScenarios":"Thrown at app/proxyman/inbound/inbound.go:168 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"}