From a8ec76fb930f1f8a002fe805130e5b2ad92664e2 Mon Sep 17 00:00:00 2001 From: juewuy Date: Wed, 1 Jan 2025 15:55:35 +0800 Subject: [PATCH] =?UTF-8?q?~=E4=BC=98=E5=8C=96=E5=B8=B8=E7=94=A8=E7=AB=AF?= =?UTF-8?q?=E5=8F=A3=E8=BF=87=E6=BB=A4=E5=8A=9F=E8=83=BD=E8=BE=93=E5=85=A5?= =?UTF-8?q?=E9=80=BB=E8=BE=91=20~=E4=BF=AE=E5=A4=8D=E9=83=A8=E5=88=86?= =?UTF-8?q?=E8=AE=BE=E5=A4=87singbox=E5=86=85=E6=A0=B8tun=E8=AE=BE?= =?UTF-8?q?=E5=A4=87=E5=9B=A0ipv6=E5=9C=B0=E5=9D=80=E5=AF=BC=E8=87=B4?= =?UTF-8?q?=E7=9A=84=E6=9D=83=E9=99=90=E4=B8=8D=E8=B6=B3=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/menu.sh | 7 ++++++- scripts/start.sh | 5 +++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/scripts/menu.sh b/scripts/menu.sh index 0fdccc3..01b7a7c 100644 --- a/scripts/menu.sh +++ b/scripts/menu.sh @@ -1617,8 +1617,13 @@ normal_set() { #基础设置 elif [ "$num" = 4 ]; then set_common_ports() { if [ "$common_ports" = "未开启" ]; then - echo -e "\033[33m已设为仅代理【$multiport】等常用端口!!\033[0m" + echo -e "\033[33m当前代理端口为:【$multiport】\033[0m" echo -e "\033[31m注意,fake-ip模式下,非常用端口的域名连接将不受影响!!\033[0m" + read -p "是否修改默认端口?(1/0) > " res + [ "$res" = "1" ] && { + read -p "请输入自定义端口,注意用小写逗号分隔 > " text + [ -n "$text" ] && setconfig multiport $text && echo -e "\033[33m已设为代理【$multiport】端口!!\033[0m" + } common_ports=已开启 sleep 1 else diff --git a/scripts/start.sh b/scripts/start.sh index e727edc..14203af 100644 --- a/scripts/start.sh +++ b/scripts/start.sh @@ -767,6 +767,7 @@ EOF } EOF if [ "$redir_mod" = "混合模式" -o "$redir_mod" = "Tun模式" ]; then + [ "ipv6_redir" = '已开启' ] && ipv6_address='"fdfe:dcba:9876::1/126",' cat >>"$TMPDIR"/jsons/tun.json <