From febfce6833087bbc7bb98a94daf113d7f8c74200 Mon Sep 17 00:00:00 2001 From: KANIKIG Date: Sun, 13 Dec 2020 23:43:03 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9D=87=E8=A1=A1=E8=B4=9F=E8=BD=BD=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- gost.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gost.sh b/gost.sh index 8982b82..e6c4f0b 100755 --- a/gost.sh +++ b/gost.sh @@ -269,7 +269,7 @@ function read_d_port() { elif [ "$flag_a" == "peerwss" ]; then echo -e "peer relay+wss://:port?ip=~/$flag_d.txt" >>$flag_c.txt else - echo -e "peer ://:port?ip=~/$flag_d.txt" >>$flag_c.txt + echo -e "peer relay://[host]:port?ip=~/$flag_d.txt" >>$flag_c.txt fi else echo -e "------------------------------------------------------------------" @@ -411,8 +411,7 @@ function method() { echo " \"tcp://:$s_port/$d_ip:$d_port\", \"udp://:$s_port/$d_ip:$d_port\"" >>$gost_conf_path elif [[ "$is_encrypt" == "peer"* ]]; then - echo " \"tcp://:$s_port?peer=~/$d_ip.txt\", - \"udp://:$s_port?peer=~/$d_ip.txt\"" >>$gost_conf_path + echo " \":$s_port?peer=~/$d_ip.txt\"" >>$gost_conf_path elif [ "$is_encrypt" == "encrypttls" ]; then echo " \"tcp://:$s_port\", \"udp://:$s_port\"