From 2f5358809a316d878482868aa0c167dce6f78a29 Mon Sep 17 00:00:00 2001 From: mack-a <57424792+mack-a@users.noreply.github.com> Date: Sun, 27 Sep 2020 21:23:55 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=84=9A=E6=9C=AC):=20=E6=B7=BB=E5=8A=A0u?= =?UTF-8?q?rlEncode?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/install.sh b/install.sh index 3369819..9fafd0f 100644 --- a/install.sh +++ b/install.sh @@ -1215,6 +1215,7 @@ defaultBase64Code(){ echoContent green ' {"port":"443","ps":"'${ps}'","tls":"tls","id":'"${id}"',"aid":"0","v":"2","host":"'${host}'","type":"none","path":'${path}',"net":"ws","add":"'${add}'","allowInsecure":0,"method":"none","peer":"'${host}'"}\n' elif [[ "${type}" = "trojan" ]] then + # URLEncode echoContent yellow " ---> Trojan(TLS)" echoContent green " trojan://${id}@${host}:443?peer=${host}&sni=${host}\n" echoContent yellow " ---> 二维码 Trojan(TLS)" @@ -1222,6 +1223,7 @@ defaultBase64Code(){ elif [[ "${type}" = "trojangows" ]] then + # URLEncode echoContent yellow " ---> Trojan-Go(WS+TLS)" echoContent green " trojan://${id}@${host}:443?plugin=obfs-local&obfs=websocket&obfs-host=${host}&obfs-uri=${path}&peer=${host}&sni=${host}\n" echoContent yellow " ---> 二维码 Trojan-Go(WS+TLS)"