0
mirror of https://github.com/XTLS/Xray-core.git synced 2025-06-16 13:27:16 +03:00

WireGuard kernelTun: Check Capabilities instead of checking UID (#3871)

https://github.com/XTLS/Xray-core/pull/3871#issuecomment-2412820323

---------

Co-authored-by: RPRX <63339210+RPRX@users.noreply.github.com>
This commit is contained in:
チセ
2024-10-15 11:30:29 +08:00
committed by GitHub
parent 6a70ae6408
commit 19f3f709b2
3 changed files with 27 additions and 11 deletions

View File

@ -11,6 +11,6 @@ func createKernelTun(localAddresses []netip.Addr, mtu int, handler promiscuousMo
return nil, errors.New("not implemented")
}
func KernelTunSupported() bool {
return false
func KernelTunSupported() (bool, error) {
return false, nil
}