Digital Marketing

Proxy Auto-Configuration (PAC) file Example

function FindProxyForURL(url, host) {
    var useSocks1088 = ["192.168.3.5"];
    var useSocks1080 = ["anotherJenkins:8443"];
    

    for (var i= 0; i < useSocks1088.length; i++) {
        if (shExpMatch(host, useSocks1088[i])) {
            return "SOCKS localhost:1088";
        }
    }

    for (var i= 0; i < useSocks1080.length; i++) {
        if (shExpMatch(host, useSocks1080[i])) {
            return "SOCKS localhost:1080";
        }
    }
    return "DIRECT";
    //return "SOCKS localhost:1088";
}
https://gist.github.com/goyuninfo/10e50ffa652d04ec9c14b7c80551b39e

Comments

Popular posts from this blog

Make online money from the Internet