mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-04-30 17:38:41 +00: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:
parent
6a70ae6408
commit
19f3f709b2
3 changed files with 27 additions and 11 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue