From 41ee8990903861b1f8cd8ebd99358b1f2b7e89a1 Mon Sep 17 00:00:00 2001 From: Amos Jeffries Date: Mon, 29 Jun 2015 05:41:49 -0700 Subject: [PATCH] Add 'tls_outgoing_options disabed' to disable HTTPS proxying --- src/security/PeerOptions.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/security/PeerOptions.cc b/src/security/PeerOptions.cc index 94e32741ca..4aeaad3107 100644 --- a/src/security/PeerOptions.cc +++ b/src/security/PeerOptions.cc @@ -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; -- 2.47.3