mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-09-21 06:02:16 +03:00
Same fix as the upstream PR (#6105) review round: grepping /etc/sysctl.conf for the setting name is unreliable -- many distros split sysctl config across /etc/sysctl.d/*.conf, and /etc/sysctl.conf can be a symlink into that directory, so the check can miss an already-active setting or match a disabled/commented line, leaving forwarding silently off either way. Query the live value via `sysctl -n` instead. Applied to both the IPv6 and IPv4 checks.
91 KiB
91 KiB