Commit aef8b18c authored by Honfika's avatar Honfika

fix

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