Windows Client PAC file for Reddit #3524
rf09141008
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm trying to work through how the PAC file works. I'm using a windows client using the config below and I'm currently blocking Reddit on my firewall (don't hate). When set to global, everything works fine through the proxy as I'm able to go to Reddit, but when set to PAC mode using the config below, Reddit does not load. Basically, from the custom config, I wanted ONLY Reddit to go through SS and everything else to go out through the normal connection:
function FindProxyForURL(url, host) {
if (dnsDomainIs(host, "reddit.com") || shExpMatch(host, "*.reddit.com")) {
return "x.x.x.x:8388";
}
// Default to direct connection for all other traffic
return "DIRECT";
}
Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions