mirror of
https://github.com/KOP-XIAO/QuantumultX.git
synced 2026-01-26 01:35:09 +00:00
Update resource-parser.js
This commit is contained in:
@@ -1215,11 +1215,13 @@ function QX_TLS(cnt,Pcert0,PTls13) {
|
|||||||
}else if(cnt.indexOf("obfs=over-tls")!=-1 || cnt.indexOf("obfs=wss")!=-1){
|
}else if(cnt.indexOf("obfs=over-tls")!=-1 || cnt.indexOf("obfs=wss")!=-1){
|
||||||
cnt = cnt.replace(new RegExp("tag.*?\=", "gmi"), cert0+"tag=")
|
cnt = cnt.replace(new RegExp("tag.*?\=", "gmi"), cert0+"tag=")
|
||||||
}
|
}
|
||||||
|
if (tls13 !="") {
|
||||||
if(cnt.indexOf("tls13") != -1){
|
if(cnt.indexOf("tls13") != -1){
|
||||||
cnt = cnt.replace(RegExp("tls13.*?\,", "gmi"), tls13)
|
cnt = cnt.replace(RegExp("tls13.*?\,", "gmi"), tls13)
|
||||||
}else if(cnt.indexOf("obfs=over-tls")!=-1 || cnt.indexOf("obfs=wss")!=-1){
|
}else if(cnt.indexOf("obfs=over-tls")!=-1 || cnt.indexOf("obfs=wss")!=-1){
|
||||||
cnt = cnt.replace(new RegExp("tag.*?\=", "gmi"), tls13+"tag=")
|
cnt = cnt.replace(new RegExp("tag.*?\=", "gmi"), tls13+"tag=")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (!/^(shadowsocks|trojan)/.test(cnt.trim())) { //关闭非 ss/ssr/trojan 类型的 udp
|
if (!/^(shadowsocks|trojan)/.test(cnt.trim())) { //关闭非 ss/ssr/trojan 类型的 udp
|
||||||
udp = "udp-relay=false, "
|
udp = "udp-relay=false, "
|
||||||
if(cnt.indexOf("udp-relay") != -1){
|
if(cnt.indexOf("udp-relay") != -1){
|
||||||
@@ -1835,7 +1837,7 @@ function Rename(str) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function RenameScript(servers, script) {
|
function RenameScript(servers, script) {
|
||||||
$notify(" | |||||||