~现在对未启用IP转发的设备,启动局域网代理时默认会检查并启用IP转发

This commit is contained in:
juewuy
2026-07-29 10:52:12 +08:00
parent d8941fb202
commit e621d37d16
2 changed files with 6 additions and 2 deletions
+1 -1
View File
@@ -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