From 84b407f21729f11bd12f271134b9676c00dd6ab5 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Thu, 31 Dec 2020 12:21:46 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E8=84=9A=E6=9C=AC):=20=E4=BF=AE=E6=94=B9ip?= =?UTF-8?q?v6=EF=BC=8C=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6outbounds?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 38 +++++++++++++++++++++++++++++++++++--- 1 file changed, 35 insertions(+), 3 deletions(-) diff --git a/install.sh b/install.sh index 2e364f0..d397b8e 100644 --- a/install.sh +++ b/install.sh @@ -1565,7 +1565,7 @@ initV2RayConfig(){ cat << EOF > /etc/v2ray-agent/v2ray/conf/00_log.json { "log": { - "error": "/etc/v2ray-agent/xray/xray_error.log", + "error": "/etc/v2ray-agent/v2ray/v2ray_error.log", "loglevel": "warning" } } @@ -1587,8 +1587,22 @@ EOF } } EOF - # outbounds + if [[ ! -z "${pingIPv6}" ]] + then + cat << EOF > /etc/v2ray-agent/v2ray/conf/10_ipv6_outbounds.json +{ + "outbounds": [ + { + "protocol": "freedom", + "settings": {}, + "tag": "direct" + } + ] +} +EOF +else + cat << EOF > /etc/v2ray-agent/v2ray/conf/10_ipv4_outbounds.json { "outbounds": [ @@ -1602,6 +1616,8 @@ EOF ] } EOF +fi + cat << EOF > /etc/v2ray-agent/v2ray/conf/10_bt_outbounds.json { @@ -1893,6 +1909,21 @@ EOF EOF # outbounds + if [[ ! -z "${pingIPv6}" ]] + then + cat << EOF > /etc/v2ray-agent/xray/conf/10_ipv6_outbounds.json +{ + "outbounds": [ + { + "protocol": "freedom", + "settings": {}, + "tag": "direct" + } + ] +} +EOF + +else cat << EOF > /etc/v2ray-agent/xray/conf/10_ipv4_outbounds.json { "outbounds": [ @@ -1906,6 +1937,7 @@ EOF ] } EOF +fi cat << EOF > /etc/v2ray-agent/xray/conf/10_bt_outbounds.json { @@ -3233,7 +3265,7 @@ menu(){ cd echoContent red "\n==============================================================" echoContent green "作者:mack-a" - echoContent green "当前版本:v2.2.12" + echoContent green "当前版本:v2.2.13" echoContent green "Github:https://github.com/mack-a/v2ray-agent" echoContent green "描述:七合一共存脚本" echoContent red "=============================================================="