This repository was archived by the owner on Jul 9, 2023. It is now read-only.
File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -586,7 +586,11 @@ public void DisableAllSystemProxies()
586
586
/// <summary>
587
587
/// Start this proxy server instance.
588
588
/// </summary>
589
- public void Start ( )
589
+ /// <param name="changeSystemProxySettings">
590
+ /// Whether or not clear any system proxy settings which is pointing to our own endpoint (causing a cycle).
591
+ /// E.g due to ungracious proxy shutdown before.
592
+ /// </param>
593
+ public void Start ( bool changeSystemProxySettings = true )
590
594
{
591
595
if ( ProxyRunning )
592
596
{
@@ -600,9 +604,7 @@ public void Start()
600
604
CertificateManager . EnsureRootCertificate ( ) ;
601
605
}
602
606
603
- // clear any system proxy settings which is pointing to our own endpoint (causing a cycle)
604
- // due to ungracious proxy shutdown before or something else
605
- if ( systemProxySettingsManager != null && RunTime . IsWindows && ! RunTime . IsUwpOnWindows )
607
+ if ( changeSystemProxySettings && systemProxySettingsManager != null && RunTime . IsWindows && ! RunTime . IsUwpOnWindows )
606
608
{
607
609
var proxyInfo = systemProxySettingsManager . GetProxyInfoFromRegistry ( ) ;
608
610
if ( proxyInfo ? . Proxies != null )
You can’t perform that action at this time.
0 commit comments