mirror of
https://github.com/2dust/v2rayN.git
synced 2026-05-30 01:34:08 +00:00
A GUI client for Windows and Linux, support Xray core and v2fly core and others
Previously, AllowEnableTun() only checked if LinuxSudoPwd was non-empty, which is always null on startup. This caused the password dialog to always appear when enabling TUN mode, even for users with NOPASSWD sudo configured. Add a check using 'sudo -n true' to detect NOPASSWD configuration. This allows users with NOPASSWD sudo to auto-enable TUN mode without being prompted for a password on each startup, matching the behavior of Windows (which auto-enables when run as administrator). Fixes behavior discussed in #7116 and #8069. |
||
|---|---|---|
| .github | ||
| v2rayN | ||
| .editorconfig | ||
| .gitattributes | ||
| .gitignore | ||
| .gitmodules | ||
| LICENSE | ||
| package-debian.sh | ||
| package-osx.sh | ||
| package-rhel-riscv.sh | ||
| package-rhel.sh | ||
| README.md | ||