Skip to content

Instantly share code, notes, and snippets.

@tandat2209
Last active March 8, 2019 04:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tandat2209/9949c9a505cdaf934054a19cc732f230 to your computer and use it in GitHub Desktop.
Save tandat2209/9949c9a505cdaf934054a19cc732f230 to your computer and use it in GitHub Desktop.
Proxy.pac
function FindProxyForURL(url, host) {
switch (true) {
case shExpMatch(host, "localdev.*"):
return "PROXY localhost:3000";
case shExpMatch(host, "jp.*.jobing.com"):
return "PROXY localhost:3000";
case shExpMatch(host, "local.*"):
return "PROXY localhost:8081";
default:
return "DIRECT";
}
}
function FindProxyForURL(url, host) {
switch (true) {
case shExpMatch(host, "localdev.*"):
return "PROXY 192.168.2.10:3000";
case shExpMatch(host, "jp.*.jobing.com"):
return "PROXY 192.168.2.10:3000";
case shExpMatch(host, "local.*"):
return "PROXY 192.168.2.10:8081";
default:
return "DIRECT";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment