Automatically detecting proxy settings
Posted: - Modified: | geekThis goes into my /etc/laptop-net/profiles/school/files.d/var/www/proxy.js:
function FindProxyForURL(url,host) { if(isPlainHostName(host)|| isInNet(host,"10.0.0.0","255.0.0.0")) return "DIRECT"; else return "PROXY proxy.admu.edu.ph:3128; DIRECT"; }
and this goes into my /etc/laptop-net/profiles/home/files.d/var/www/proxy.js:
function FindProxyForURL(url,host) { return "DIRECT"; }
I deleted the other profile and changed my settings to automatically detect the proxy configuration from file:///var/www/proxy.js . Tada! No more worries. It just works.
3 comments
Jon
2008-06-19T18:21:14ZI guess you must be using a Linux system. How would I accomplish this on my windows system?
Sacha Chua
2008-06-20T00:14:56ZOh. Umm. You would probably switch to Linux. Sorry about that...
Jon
2008-06-23T07:56:02ZNo problem. Thanks for the response.