Update resource-parser.js

This commit is contained in:
wwqgtxx
2023-04-14 23:44:36 +08:00
committed by GitHub
parent e1b21cb5de
commit b5f7917836

View File

@@ -2887,6 +2887,7 @@ function CSS2QX(cnt) {
pwd = "password=" + cnt.password pwd = "password=" + cnt.password
mtd = "method="+ cnt.cipher mtd = "method="+ cnt.cipher
udp = cnt.udp ? "udp-relay=true" : "udp-relay=false" udp = cnt.udp ? "udp-relay=true" : "udp-relay=false"
uot = cnt["udp-over-tcp"] ? "udp-over-tcp=true" : "udp-over-tcp=false"
tfo = cnt.tfo ? "fast-open=true" : "fast-open=false" tfo = cnt.tfo ? "fast-open=true" : "fast-open=false"
obfs = cnt["plugin-opts"] ? "obfs=" + cnt["plugin-opts"].mode : "" obfs = cnt["plugin-opts"] ? "obfs=" + cnt["plugin-opts"].mode : ""
ohost = cnt["plugin-opts"] ? "obfs-host=" + cnt["plugin-opts"].host : "" ohost = cnt["plugin-opts"] ? "obfs-host=" + cnt["plugin-opts"].host : ""
@@ -2899,7 +2900,7 @@ function CSS2QX(cnt) {
if (obfs == "obfs=wss") { // tls verification if (obfs == "obfs=wss") { // tls verification
cert = Pcert0 == 1? "" : "tls-verification =false"} cert = Pcert0 == 1? "" : "tls-verification =false"}
} }
node = "shadowsocks="+[ipt, pwd, mtd, udp, tfo, obfs, ohost, ouri, cert, tag].filter(Boolean).join(", ") node = "shadowsocks="+[ipt, pwd, mtd, udp, uot, tfo, obfs, ohost, ouri, cert, tag].filter(Boolean).join(", ")
return node return node
} }