Does Sagernet use kernel wireguard module or userspace version?
Rtizer-9 opened this issue · comments
Before submitting an issue, please make sure you are using the latest version of SagerNet.
Describe the bug
I just have a quick question. It's given in wireguard documentation that if the kernel has wireguard module by default then it is used for better battery life and performance so I was just wondering what does sagernet use when a wireguard config (like warp) is used - kernelspace module or userspace?
To Reproduce
NA
Debug Information
NA
Expected behavior
Sagernet should use wireguard kernelspace module by default when the kernel has wireguard module for better battery life and performance instead of userspace version.
Screenshots
NA
Smartphone (please complete the following information)
NA
Additional context
I can already see Sagernet being able to ask for both magisk and shizuku permission for root so it shouldn't really be a problem to use kernelspace wireguard module by default just like the official wireguard app.