mirror of
https://github.com/juewuy/ShellCrash.git
synced 2026-09-08 13:46:33 +00:00
~现在对未启用IP转发的设备,启动局域网代理时默认会检查并启用IP转发
This commit is contained in:
@@ -77,7 +77,7 @@ forwhat() {
|
||||
content_line "\033[33m$UG_IP_FORWARD_WARN\033[0m"
|
||||
read -r -p "$COMMON_INPUT_R" res
|
||||
[ "$res" = 1 ] && {
|
||||
content_line 'net.ipv4.ip_forward = 1' >>/etc/sysctl.conf
|
||||
echo 'net.ipv4.ip_forward = 1' >>/etc/sysctl.conf
|
||||
sysctl -w net.ipv4.ip_forward=1
|
||||
}
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user