Commit aef8b18c authored by Honfika's avatar Honfika

fix

parent be556d21
......@@ -163,12 +163,15 @@ namespace Titanium.Web.Proxy.Helpers
/// <summary>
/// Remove the HTTP and/or HTTPS proxy setting from current machine
/// </summary>
internal void RemoveProxy(ProxyProtocolType protocolType)
internal void RemoveProxy(ProxyProtocolType protocolType, bool saveOriginalConfig = true)
{
var reg = Registry.CurrentUser.OpenSubKey(regKeyInternetSettings, true);
if (reg != null)
{
SaveOriginalProxyConfiguration(reg);
if (saveOriginalConfig)
{
SaveOriginalProxyConfiguration(reg);
}
if (reg.GetValue(regProxyServer) != null)
{
......
......@@ -511,7 +511,7 @@ namespace Titanium.Web.Proxy
var value = proxy.Value;
if (value.HostName == "127.0.0.1" && ProxyEndPoints.Any(x => x.Port == value.Port))
{
systemProxySettingsManager.RemoveProxy(value.ProtocolType);
systemProxySettingsManager.RemoveProxy(value.ProtocolType, false);
}
}
}
......
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