{"record":{"id":"6088b9bad9ea989f","repo":"XTLS/Xray-core","slug":"automatic-outbound-interface-selection-is-not-supp-6088b9","errorCode":null,"errorMessage":"automatic outbound interface selection is not supported on this platform","messagePattern":"automatic outbound interface selection is not supported on this platform","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"proxy/tun/tun_default.go","lineNumber":48,"sourceCode":"func (t *DefaultTun) Name() (string, error) {\n\treturn \"\", errors.New(\"Tun is not supported on your platform\")\n}\n\nfunc (t *DefaultTun) Index() (int, error) {\n\treturn 0, errors.New(\"Tun is not supported on your platform\")\n}\n\nfunc (t *DefaultTun) newEndpoint() (stack.LinkEndpoint, error) {\n\treturn nil, errors.New(\"Tun is not supported on your platform\")\n}\n\nfunc setinterface(string, string, uintptr, *net.Interface) error {\n\treturn errors.New(\"Tun is not supported on your platform\")\n}\n\nfunc findOutboundInterface(tunIndex int, fixedName string) (*net.Interface, error) {\n\tif fixedName == \"\" {\n\t\treturn nil, errors.New(\"automatic outbound interface selection is not supported on this platform\")\n\t}\n\tiface, err := net.InterfaceByName(fixedName)\n\tif err != nil {\n\t\treturn nil, err\n\t}\n\tif iface.Index == tunIndex {\n\t\treturn nil, errors.New(\"outbound interface cannot be the TUN interface\")\n\t}\n\treturn iface, nil\n}\n","sourceCodeStart":30,"sourceCodeEnd":59,"githubUrl":"https://github.com/XTLS/Xray-core/blob/7d214f8b094f75322fa3990f8aadad1c912f24f5/proxy/tun/tun_default.go#L30-L59","documentation":"Error \"automatic outbound interface selection is not supported on this platform\" thrown in XTLS/Xray-core.","triggerScenarios":"Thrown at proxy/tun/tun_default.go:48 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"}