mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-25 21:25:09 +00:00
minor bug fixed
This commit is contained in:
@@ -1520,9 +1520,9 @@ function TJ2QX(subs, Pudp, Ptfo, Pcert0, PTls13) {
|
||||
if (cnt.indexOf(":443") != -1) {
|
||||
ip = cnt.split("@")[1].split(":443")[0] + ":443";
|
||||
} else {
|
||||
ip = cnt.split("@")[1].split("?")[0].split("\n")[0].trim(); //非 443 端口的奇葩机场?
|
||||
ip = cnt.split("@")[1].split("?")[0].split("\n")[0].split("#")[0].trim(); //非 443 端口的奇葩机场?
|
||||
}
|
||||
pwd = "password=" + cnt.split("@")[0];
|
||||
pwd = cnt.split("@")[0]? "password=" + decodeURIComponent(cnt.split("@")[0]):"";
|
||||
obfs = "over-tls=true";
|
||||
pcert = cnt.indexOf("allowInsecure=0") != -1 ? "tls-verification=true" : "tls-verification=false";
|
||||
thost = cnt.indexOf("sni=") != -1? "tls-host="+cnt.split("sni=")[1].split(/&|#/)[0]:""
|
||||
|
||||
Reference in New Issue
Block a user