/// <summary> /// Diagnoses the system proxy. /// </summary> /// <param name="parameters">The parameters.</param> /// <returns></returns> public ProxyDiagnostic Diagnose(SystemAnalysisParameters parameters = null) { parameters = parameters ?? new SystemAnalysisParameters(); return new ProxyDiagnostic { DefaultProxy = GetDefaultProxy(parameters.SafeHttpTarget), SafeHttpGetRoute = DiagnoseRoute(parameters.SafeHttpTarget, false), SafeHttpsConnectRoute = DiagnoseRoute(parameters.SafeHttpsTarget, true), SafeHttpConnectRoute = DiagnoseRoute(parameters.SafeHttpTarget, true), SensitiveHttpGetRoute = DiagnoseRoute(parameters.SensitiveHttpTarget, false), SensitiveHttpsConnectRoute = DiagnoseRoute(parameters.SensitiveHttpsTarget, true), SensitiveHttpConnectRoute = DiagnoseRoute(parameters.SensitiveHttpTarget, true), SafeLocalDns = DiagnoseDns(parameters.SafeHttpTarget.Host), SensitiveLocalDns = DiagnoseDns(parameters.SensitiveHttpTarget.Host), }; }
/// <summary> /// Diagnoses the system proxy. /// </summary> /// <param name="parameters">The parameters.</param> /// <returns></returns> public ProxyDiagnostic Diagnose(SystemAnalysisParameters parameters = null) { parameters = parameters ?? new SystemAnalysisParameters(); return(new ProxyDiagnostic { DefaultProxy = GetDefaultProxy(parameters.SafeHttpTarget), SafeHttpGetRoute = DiagnoseRoute(parameters.SafeHttpTarget, false), SafeHttpsConnectRoute = DiagnoseRoute(parameters.SafeHttpsTarget, true), SafeHttpConnectRoute = DiagnoseRoute(parameters.SafeHttpTarget, true), SensitiveHttpGetRoute = DiagnoseRoute(parameters.SensitiveHttpTarget, false), SensitiveHttpsConnectRoute = DiagnoseRoute(parameters.SensitiveHttpsTarget, true), SensitiveHttpConnectRoute = DiagnoseRoute(parameters.SensitiveHttpTarget, true), SafeLocalDns = DiagnoseDns(parameters.SafeHttpTarget.Host), SensitiveLocalDns = DiagnoseDns(parameters.SensitiveHttpTarget.Host), }); }