XTLS/Xray-core · error

automatic outbound interface selection is not supported on t

Error message

automatic outbound interface selection is not supported on this platform

What it means

Error "automatic outbound interface selection is not supported on this platform" thrown in XTLS/Xray-core.

Source

Thrown at proxy/tun/tun_default.go:48

func (t *DefaultTun) Name() (string, error) {
	return "", errors.New("Tun is not supported on your platform")
}

func (t *DefaultTun) Index() (int, error) {
	return 0, errors.New("Tun is not supported on your platform")
}

func (t *DefaultTun) newEndpoint() (stack.LinkEndpoint, error) {
	return nil, errors.New("Tun is not supported on your platform")
}

func setinterface(string, string, uintptr, *net.Interface) error {
	return errors.New("Tun is not supported on your platform")
}

func findOutboundInterface(tunIndex int, fixedName string) (*net.Interface, error) {
	if fixedName == "" {
		return nil, errors.New("automatic outbound interface selection is not supported on this platform")
	}
	iface, err := net.InterfaceByName(fixedName)
	if err != nil {
		return nil, err
	}
	if iface.Index == tunIndex {
		return nil, errors.New("outbound interface cannot be the TUN interface")
	}
	return iface, nil
}

View on GitHub (pinned to 7d214f8b09)

When it happens

Trigger: Thrown at proxy/tun/tun_default.go:48 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/6088b9bad9ea989f. Report an issue: GitHub.