Untitled

 avatar
unknown
javascript
a year ago
453 B
5
Indexable
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;
}
Editor is loading...