コード例 #1
0
ファイル: Proxy.cs プロジェクト: Crawping/CSharpTestArea
 internal void CollectConnectoidAndGatewayInfo()
 {
     this.oAllConnectoids = new WinINETConnectoids();
     this.piPrior         = this.oAllConnectoids.GetDefaultConnectionGatewayInfo();
     if (CONFIG.bForwardToGateway && ((this.piPrior.sPACScriptLocation != null) || this.piPrior.bAutoDetect))
     {
         this.oAutoProxy = new WinHTTPAutoProxy(this.piPrior.bAutoDetect, this.piPrior.sPACScriptLocation);
     }
     else if (this.oAutoProxy != null)
     {
         this.oAutoProxy.Dispose();
         this.oAutoProxy = null;
     }
     if (CONFIG.bForwardToGateway && this.piPrior.bUseManualProxies)
     {
         this._DetermineGatewayIPEndPoints();
         if (string.IsNullOrEmpty(this.piPrior.sHostsThatBypass))
         {
             this.oBypassList = null;
         }
         else
         {
             this.oBypassList = new ProxyBypassList(this.piPrior.sHostsThatBypass);
             if (!this.oBypassList.HasEntries)
             {
                 this.oBypassList = null;
             }
         }
     }
     else
     {
         this._ipepFtpGateway = this._ipepHttpGateway = (IPEndPoint)(this._ipepHttpsGateway = null);
         this.oBypassList     = null;
     }
 }
コード例 #2
0
 internal void CollectConnectoidAndGatewayInfo()
 {
     try
     {
         this.oAllConnectoids = new WinINETConnectoids();
         this.RefreshUpstreamGatewayInformation();
     }
     catch (Exception eX)
     {
         FiddlerApplication.ReportException(eX, "System Error");
     }
 }
コード例 #3
0
ファイル: Proxy.cs プロジェクト: pisceanfoot/socketproxy
 internal void CollectConnectoidAndGatewayInfo()
 {
     try
     {
         this.oAllConnectoids = new WinINETConnectoids();
         this.RefreshUpstreamGatewayInformation();
     }
     catch (Exception exception)
     {
         FiddlerApplication.ReportException(exception, "System Error");
     }
 }