From 60fe6cef969f88f34bd3a902668921bd95062ebd Mon Sep 17 00:00:00 2001 From: KANIKIG Date: Fri, 29 Jan 2021 17:23:04 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=BD=AC=E5=8F=91CDN?= =?UTF-8?q?=E8=87=AA=E9=80=89ip=E5=8A=9F=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gost.sh | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gost.sh b/gost.sh index 49f522b..49f822f 100755 --- a/gost.sh +++ b/gost.sh @@ -561,6 +561,9 @@ function method() { elif [ "$is_encrypt" == "peerno" ]; then echo " \"tcp://:$s_port?ip=/root/$d_ip.txt&strategy=$d_port\", \"udp://:$s_port?ip=/root/$d_ip.txt&strategy=$d_port\"" >>$gost_conf_path + elif [ "$is_encrypt" == "cdnno" ]; then + echo " \"tcp://:$s_port/$d_ip?host=$d_port\", + \"udp://:$s_port/$d_ip?host=$d_port\"" >>$gost_conf_path elif [ "$is_encrypt" == "encrypttls" ]; then echo " \"tcp://:$s_port\", \"udp://:$s_port\" @@ -597,6 +600,18 @@ function method() { ], \"ChainNodes\": [ \"relay+wss://:?ip=/root/$d_ip.txt&strategy=$d_port\"" >>$gost_conf_path + elif [ "$is_encrypt" == "cdnws" ]; then + echo " \"tcp://:$s_port\", + \"udp://:$s_port\" + ], + \"ChainNodes\": [ + \"relay+ws://$d_ip?host=$d_port\"" >>$gost_conf_path + elif [ "$is_encrypt" == "cdnwss" ]; then + echo " \"tcp://:$s_port\", + \"udp://:$s_port\" + ], + \"ChainNodes\": [ + \"relay+wss://$d_ip?host=$d_port\"" >>$gost_conf_path elif [ "$is_encrypt" == "decrypttls" ]; then echo " \"relay+tls://:$s_port/$d_ip:$d_port\"" >>$gost_conf_path elif [ "$is_encrypt" == "decryptws" ]; then