This commit is contained in:
KANIKIG
2020-10-15 22:33:36 +08:00
parent 45ccbfbfc3
commit b34bd84527

14
gost.sh
View File

@@ -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