Untitled

mail@pastecode.io avatar
unknown
plain_text
a month ago
453 B
0
Indexable
Never
function operator(proxies, targetPlatform) {
    const { isSurge } = $substore.env;
    const { host, allowInsecure } = $arguments;
    if (isSurge) {
        return proxies.map((proxy) => {
            if (proxy.type === "vmess" && proxy.port === 443) {
                proxy.sni = host;
                p["skip-cert-verify"] = !allowInsecure || allowInsecure == "true";
            }

            return proxy;
        });
    }

    return proxies;
}