| 2910 | |
| 2911 | // Clash http |
| 2912 | function 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 |
| 2930 | function CS52QX(cnt){ |