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; } }
private void AssignGateway(WinINETProxyInfo oPI) { this.piSystemGateway = oPI; if (this.piSystemGateway.bAutoDetect || this.piSystemGateway.sPACScriptLocation != null) { this.oAutoProxy = new WinHTTPAutoProxy(this.piSystemGateway.bAutoDetect, this.piSystemGateway.sPACScriptLocation); } if (this.piSystemGateway.bUseManualProxies) { this._DetermineGatewayIPEndPoints(); if (!string.IsNullOrEmpty(this.piSystemGateway.sHostsThatBypass)) { this.oBypassList = new ProxyBypassList(this.piSystemGateway.sHostsThatBypass); if (!this.oBypassList.HasEntries) { this.oBypassList = null; } } } }
internal void RefreshUpstreamGatewayInformation() { this._ipepFtpGateway = (this._ipepHttpGateway = (this._ipepHttpsGateway = null)); this.piSystemGateway = null; this.oBypassList = null; if (this.oAutoProxy != null) { this.oAutoProxy.Dispose(); this.oAutoProxy = null; } switch (CONFIG.UpstreamGateway) { case GatewayType.None: FiddlerApplication.Log.LogString("Setting upstream gateway to none"); return; case GatewayType.Manual: { WinINETProxyInfo oPI = WinINETProxyInfo.CreateFromStrings(FiddlerApplication.Prefs.GetStringPref("fiddler.network.gateway.proxies", string.Empty), FiddlerApplication.Prefs.GetStringPref("fiddler.network.gateway.exceptions", string.Empty)); this.AssignGateway(oPI); return; } case GatewayType.System: this.AssignGateway(this.oAllConnectoids.GetDefaultConnectionGatewayInfo()); return; case GatewayType.WPAD: FiddlerApplication.Log.LogString("Setting upstream gateway to WPAD"); this.oAutoProxy = new WinHTTPAutoProxy(true, null); return; default: return; } }
private void AssignGateway(WinINETProxyInfo oPI) { this.piSystemGateway = oPI; if (this.piSystemGateway.bAutoDetect || (this.piSystemGateway.sPACScriptLocation != null)) { this.oAutoProxy = new WinHTTPAutoProxy(this.piSystemGateway.bAutoDetect, this.piSystemGateway.sPACScriptLocation); } if (this.piSystemGateway.bUseManualProxies) { this._DetermineGatewayIPEndPoints(); if (!string.IsNullOrEmpty(this.piSystemGateway.sHostsThatBypass)) { this.oBypassList = new ProxyBypassList(this.piSystemGateway.sHostsThatBypass); if (!this.oBypassList.HasEntries) { this.oBypassList = null; } } } }
internal void RefreshUpstreamGatewayInformation() { this._ipepFtpGateway = this._ipepHttpGateway = (IPEndPoint) (this._ipepHttpsGateway = null); this.piSystemGateway = null; this.oBypassList = null; if (this.oAutoProxy != null) { this.oAutoProxy.Dispose(); this.oAutoProxy = null; } switch (CONFIG.UpstreamGateway) { case GatewayType.None: FiddlerApplication.Log.LogString("Setting upstream gateway to none"); return; case GatewayType.Manual: { WinINETProxyInfo oPI = WinINETProxyInfo.CreateFromStrings(FiddlerApplication.Prefs.GetStringPref("fiddler.network.gateway.proxies", string.Empty), FiddlerApplication.Prefs.GetStringPref("fiddler.network.gateway.exceptions", string.Empty)); this.AssignGateway(oPI); return; } case GatewayType.System: this.AssignGateway(this.oAllConnectoids.GetDefaultConnectionGatewayInfo()); return; case GatewayType.WPAD: FiddlerApplication.Log.LogString("Setting upstream gateway to WPAD"); this.oAutoProxy = new WinHTTPAutoProxy(true, null); return; } }