MCPcopy Create free account
hub / github.com/Moli-X/Resources / CS52QX

Function CS52QX

Script/Parser.js:2930–2945  ·  view source on GitHub ↗
(cnt)

Source from the content-addressed store, hash-verified

2928
2929// Clash socks5
2930function CS52QX(cnt){
2931 tag = "tag="+cnt.name.replace(/\\U.+?\s{1}/gi," ")
2932 ipt = cnt.server+":"+cnt.port
2933 uname = cnt.username ? "username=" + cnt.username : ""
2934 pwd = cnt.password && typeof(cnt.password) == "string" ? "password=" + cnt.password : ""
2935 tls = cnt.tls ? "over-tls=true" : ""
2936 cert = cnt["skip-cert-verify"] && cnt.tls ? "tls-verification=false" : ""
2937 if (Pcert0 == 1 && cnt.tls) {
2938 cert = "tls-verification=true"
2939 } else if (Pcert0 != 1 && cnt.tls) {
2940 cert = "tls-verification=false"
2941 }
2942 node = "socks5="+[ipt, uname, pwd, tls, cert, tag].filter(Boolean).join(", ")
2943 //console.log(node)
2944 return node
2945}
2946
2947
2948// UDP/TFO 参数 (强制 surge/quanx 类型转换)

Callers 1

Clash2QXFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected