Skip to content

Instantly share code, notes, and snippets.

@shalzz
Last active September 6, 2018 05:46
Show Gist options
  • Save shalzz/7586444 to your computer and use it in GitHub Desktop.
Save shalzz/7586444 to your computer and use it in GitHub Desktop.
[PAC file for UPESNET at UPES] Proxy Automatic Configuration script which automatically sets the proxy required for the network "UPESNET" (Wi-Fi at University of Petroleum and Energy Studies). #windows
/*
* Copyright (C) 2013
* Shaleen Jain
* shalzz@outlook.com
*
* PAC File for UPESNET
*/
function FindProxyForURL(url, host) {
if(isResolvable("proxy.ddn.upes.ac.in"))
{
return "PROXY proxy.ddn.upes.ac.in:8080";
}
else
{
return "DIRECT";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment