mirror of
https://github.com/KANIKIG/Multi-EasyGost.git
synced 2025-08-10 00:52:32 +00:00
增加转发CDN自选ip功能
This commit is contained in:
15
gost.sh
15
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
|
||||
|
||||
Reference in New Issue
Block a user