feat(脚本): 修改routing规则、修改ping6规则

pull/534/merge
mack-a 2020-12-23 10:37:32 +08:00
parent ff12ad7f54
commit a3066c7195
1 changed files with 3 additions and 3 deletions

View File

@ -2645,7 +2645,7 @@ aliasInstall(){
# 检查ipv6、ipv4 # 检查ipv6、ipv4
checkIPv6(){ checkIPv6(){
pingIPv6=`ping6 -c 1 -W 1000 www.google.com|sed '2{s/[^(]*(//;s/).*//;q;}'|tail -n +2` pingIPv6=`ping6 -c 1 www.google.com|sed '2{s/[^(]*(//;s/).*//;q;}'|tail -n +2`
if [[ -z "${pingIPv6}" ]] if [[ -z "${pingIPv6}" ]]
then then
echoContent red " ---> 不支持ipv6" echoContent red " ---> 不支持ipv6"
@ -2667,7 +2667,7 @@ ipv6HumanVerification(){
cat << EOF > ${configPath}09_routing.json cat << EOF > ${configPath}09_routing.json
{ {
"routing":{ "routing":{
"domainStrategy": "AsIs", "domainStrategy": "IPOnDemand",
"rules": [ "rules": [
{ {
"type": "field", "type": "field",
@ -2999,7 +2999,7 @@ menu(){
cd cd
echoContent red "\n==============================================================" echoContent red "\n=============================================================="
echoContent green "作者mack-a" echoContent green "作者mack-a"
echoContent green "当前版本v2.2.5" echoContent green "当前版本v2.2.6"
echoContent green "Githubhttps://github.com/mack-a/v2ray-agent" echoContent green "Githubhttps://github.com/mack-a/v2ray-agent"
echoContent green "描述:七合一共存脚本" echoContent green "描述:七合一共存脚本"
echoContent red "==============================================================" echoContent red "=============================================================="