~优化常用端口过滤功能输入逻辑
~修复部分设备singbox内核tun设备因ipv6地址导致的权限不足问题
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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 <<EOF
|
||||
{
|
||||
"inbounds": [
|
||||
@@ -775,8 +776,8 @@ EOF
|
||||
"tag": "tun-in",
|
||||
"interface_name": "utun",
|
||||
"address": [
|
||||
"172.72.0.1/30",
|
||||
"fdfe:dcba:9876::1/126"
|
||||
$ipv6_address
|
||||
"172.72.0.1/30"
|
||||
],
|
||||
"auto_route": false,
|
||||
"stack": "system",
|
||||
|
||||
Reference in New Issue
Block a user