This repository was archived by the owner on Jul 9, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -586,7 +586,11 @@ public void DisableAllSystemProxies()
586586 /// <summary>
587587 /// Start this proxy server instance.
588588 /// </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 )
590594 {
591595 if ( ProxyRunning )
592596 {
@@ -600,9 +604,7 @@ public void Start()
600604 CertificateManager . EnsureRootCertificate ( ) ;
601605 }
602606
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 )
606608 {
607609 var proxyInfo = systemProxySettingsManager . GetProxyInfoFromRegistry ( ) ;
608610 if ( proxyInfo ? . Proxies != null )
You can’t perform that action at this time.
0 commit comments