From b34bd84527e9de14057554f79815f229b76be39a Mon Sep 17 00:00:00 2001 From: KANIKIG Date: Thu, 15 Oct 2020 22:33:36 +0800 Subject: [PATCH] fix --- gost.sh | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/gost.sh b/gost.sh index 0b68010..1776290 100755 --- a/gost.sh +++ b/gost.sh @@ -313,14 +313,20 @@ function method() \"ChainNodes\": [ \"relay+wss://$d_ip:$d_port\"" >> $gost_conf_path elif [ "$is_encrypt" = "decrypttls" ]; then - echo " \"relay+tls://:$s_port/$d_ip:$d_port\"" >> $gost_conf_path + { + echo " \"relay+tls://:$s_port/$d_ip:$d_port\"" >> $gost_conf_path proxy + } elif [ "$is_encrypt" = "decryptws" ]; then + { echo " \"relay+ws://:$s_port/$d_ip:$d_port\"" >> $gost_conf_path proxy + } elif [ "$is_encrypt" = "decryptwss" ]; then + { echo " \"relay+wss://:$s_port/$d_ip:$d_port\"" >> $gost_conf_path proxy + } else echo "config error" fi @@ -347,14 +353,20 @@ function method() \"ChainNodes\": [ \"relay+wss://$d_ip:$d_port\"" >> $gost_conf_path elif [ "$is_encrypt" = "decrypttls" ]; then + { echo " \"relay+tls://:$s_port/$d_ip:$d_port\"" >> $gost_conf_path proxy + } elif [ "$is_encrypt" = "decryptws" ]; then + { echo " \"relay+ws://:$s_port/$d_ip:$d_port\"" >> $gost_conf_path proxy + } elif [ "$is_encrypt" = "decryptwss" ]; then + { echo " \"relay+wss://:$s_port/$d_ip:$d_port\"" >> $gost_conf_path proxy + } else echo "config error" fi