| 2928 | |
| 2929 | // Clash socks5 |
| 2930 | function 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 类型转换) |