Commit 329d8555 authored by justcoding121's avatar justcoding121 Committed by justcoding121

Set system proxy only if root was trusted

parent d3db9b7f
......@@ -107,12 +107,12 @@ namespace Titanium.Web.Proxy
RootCertificateName = RootCertificateName == null ? "Titanium_Proxy_Test_Root" : RootCertificateName;
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