Commit 0381ef56 authored by titanium007's avatar titanium007

Set system proxy only if root was trusted

parent d5a56c8f
...@@ -107,12 +107,12 @@ namespace Titanium.Web.Proxy ...@@ -107,12 +107,12 @@ namespace Titanium.Web.Proxy
RootCertificateName = RootCertificateName == null ? "Titanium_Proxy_Test_Root" : RootCertificateName; RootCertificateName = RootCertificateName == null ? "Titanium_Proxy_Test_Root" : RootCertificateName;
bool certTrusted = CertManager.CreateTrustedRootCertificate(); bool certTrusted = CertManager.CreateTrustedRootCertificate();
if (!certTrusted) if (certTrusted)
{ {
// The user didn't want to install the self-signed certificate to the root store. SystemProxyHelper.EnableProxyHTTPS("localhost", ListeningPort);
} }
SystemProxyHelper.EnableProxyHTTPS("localhost", ListeningPort);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment