Skip to content

Instantly share code, notes, and snippets.

@relyt0925
Created September 6, 2022 15:38
Show Gist options
  • Save relyt0925/e51d8411095f8a954ffe6451c20c833f to your computer and use it in GitHub Desktop.
Save relyt0925/e51d8411095f8a954ffe6451c20c833f to your computer and use it in GitHub Desktop.
proxy.pac
var FindProxyForURL = function(init, profiles) {
return function(url, host) {
"use strict";
var result = init, scheme = url.substr(0, url.indexOf(":"));
do {
result = profiles[result];
if (typeof result === "function") result = result(url, host, scheme);
} while (typeof result !== "string" || result.charCodeAt(0) === 43);
return result;
};
}("+bank-proxy", {
"+bank-proxy": function(url, host, scheme) {
"use strict";
if (/^127\.0\.0\.1$/.test(host) || /^::1$/.test(host) || /^localhost$/.test(host)) return "DIRECT";
return "PROXY 169.63.190.35:3128";
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment