[PC-BSD Commits] r19766 - pcbsd/current/src-qt4/libpcbsd

svn at pcbsd.org svn at pcbsd.org
Thu Oct 18 08:47:33 PDT 2012


Author: kris
Date: 2012-10-18 15:47:33 +0000 (Thu, 18 Oct 2012)
New Revision: 19766

Modified:
   pcbsd/current/src-qt4/libpcbsd/utils.cpp
Log:

Add more proxy variables we save, so browsers such as chrome work out
of box



Modified: pcbsd/current/src-qt4/libpcbsd/utils.cpp
===================================================================
--- pcbsd/current/src-qt4/libpcbsd/utils.cpp	2012-10-18 15:25:53 UTC (rev 19765)
+++ pcbsd/current/src-qt4/libpcbsd/utils.cpp	2012-10-18 15:47:33 UTC (rev 19766)
@@ -360,7 +360,18 @@
 
 bool Utils::setProxyAddress(QString val) {
    setValCSHFile(QString("/etc/csh.cshrc"), QString("HTTP_PROXY"), val);
-   return setValSHFile(QString("/etc/profile"), QString("HTTP_PROXY"), val);
+   setValCSHFile(QString("/etc/csh.cshrc"), QString("HTTPS_PROXY"), val);
+   setValCSHFile(QString("/etc/csh.cshrc"), QString("NO_PROXY"), "127.0.0.1,localhost");
+   setValCSHFile(QString("/etc/csh.cshrc"), QString("http_proxy"), val);
+   setValCSHFile(QString("/etc/csh.cshrc"), QString("https_proxy"), val);
+   setValCSHFile(QString("/etc/csh.cshrc"), QString("no_proxy"), "127.0.0.1,localhost");
+   setValSHFile(QString("/etc/profile"), QString("HTTP_PROXY"), val);
+   setValSHFile(QString("/etc/profile"), QString("HTTPS_PROXY"), val);
+   setValSHFile(QString("/etc/profile"), QString("NO_PROXY"), "127.0.0.1,localhost");
+   setValSHFile(QString("/etc/profile"), QString("http_proxy"), val);
+   setValSHFile(QString("/etc/profile"), QString("https_proxy"), val);
+   setValSHFile(QString("/etc/profile"), QString("no_proxy"), "127.0.0.1,localhost");
+   return true;
 }
 
 bool Utils::setProxyAuth(QString val) {



More information about the Commits mailing list