]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
Add 'tls_outgoing_options disabed' to disable HTTPS proxying
authorAmos Jeffries <squid3@treenet.co.nz>
Mon, 29 Jun 2015 12:41:49 +0000 (05:41 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Mon, 29 Jun 2015 12:41:49 +0000 (05:41 -0700)
src/security/PeerOptions.cc

index 94e32741ca4484dc358778cd706753f386ef0f6e..4aeaad31078a5f2f9ac4d08e27409ffc91d33d3d 100644 (file)
@@ -41,7 +41,9 @@ Security::PeerOptions::PeerOptions(const Security::PeerOptions &p) :
 void
 Security::PeerOptions::parse(const char *token)
 {
-    if (strncmp(token, "cert=", 5) == 0) {
+    if (strncmp(token, "disable", 7) == 0) {
+        clear();
+    } else if (strncmp(token, "cert=", 5) == 0) {
         certFile = SBuf(token + 5);
         if (privateKeyFile.isEmpty())
             privateKeyFile = certFile;