From 893ddd7268b87d4d4ebc18eb2579b82db00e903e Mon Sep 17 00:00:00 2001 From: juewuy Date: Wed, 14 Jan 2026 18:54:09 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BC=98=E5=8C=96=E9=BB=98=E8=AE=A4ipv4?= =?UTF-8?q?=E8=B7=AF=E7=94=B1=E7=BD=91=E6=AE=B5=E8=8E=B7=E5=8F=96=E6=9C=BA?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menus/2_settings.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/menus/2_settings.sh b/scripts/menus/2_settings.sh index 3c880c2a..6a55f446 100644 --- a/scripts/menus/2_settings.sh +++ b/scripts/menus/2_settings.sh @@ -459,8 +459,9 @@ set_common_ports() { } set_cust_host_ipv4() { #自定义ipv4透明路由网段 [ -z "$replace_default_host_ipv4" ] && replace_default_host_ipv4="OFF" + . "$CRASHDIR"/starts/fw_getlanip.sh && getlanip echo "-----------------------------------------------" - echo -e "当前默认透明路由的网段为: \033[32m$(ip a 2>&1 | grep -w 'inet' | grep 'global' | grep 'br' | grep -v 'iot' | grep -E ' 1(92|0|72)\.' | sed 's/.*inet.//g' | sed 's/br.*$//g' | sed 's/metric.*$//g' | tr '\n' ' ' && echo) \033[0m" + echo -e "当前默认透明路由的网段为: \033[32m$host_ipv4\033[0m" echo -e "当前已添加的自定义网段为:\033[36m$cust_host_ipv4\033[0m" echo "-----------------------------------------------" echo -e " 1 移除所有自定义网段"