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

Function CH2QX

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

Source from the content-addressed store, hash-verified

2910
2911// Clash http
2912function CH2QX(cnt){
2913 tag = "tag="+cnt.name.replace(/\\U.+?\s{1}/gi," ")
2914 ipt = cnt.server+":"+cnt.port
2915 uname = cnt.username ? "username=" + cnt.username : ""
2916 pwd = cnt.password && typeof(cnt.password) == "string" ? "password=" + cnt.password : ""
2917 tls = cnt.tls ? "over-tls=true" : ""
2918 cert = cnt["skip-cert-verify"] && cnt.tls ? "tls-verification=false" : ""
2919 if (Pcert0 == 1 && cnt.tls) {
2920 cert = "tls-verification=true"
2921 } else if (Pcert0 != 1 && cnt.tls) {
2922 cert = "tls-verification=false"
2923 }
2924 node = "http="+[ipt, uname, pwd, tls, cert, tag].filter(Boolean).join(", ")
2925 //console.log(node)
2926 return node
2927}
2928
2929// Clash socks5
2930function CS52QX(cnt){

Callers 1

Clash2QXFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected