2019-05-18 02:00:56 +02:00
|
|
|
|
namespace ElectronNET.API.Entities
|
2019-05-16 18:03:31 +02:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// Proxy configuration for app.setProxy / session.setProxy. Matches Electron's ProxyConfig structure.
|
2019-05-16 18:03:31 +02:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
public class ProxyConfig
|
|
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
2025-11-22 02:16:10 +01:00
|
|
|
|
/// The proxy mode. One of: 'direct' | 'auto_detect' | 'pac_script' | 'fixed_servers' | 'system'.
|
|
|
|
|
|
/// Defaults to 'pac_script' if 'PacScript' is specified, otherwise defaults to 'fixed_servers'.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string Mode { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
2019-05-16 18:03:31 +02:00
|
|
|
|
/// The URL associated with the PAC file.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string PacScript { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Rules indicating which proxies to use.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ProxyRules { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Rules indicating which URLs should bypass the proxy settings.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public string ProxyBypassRules { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
///
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <param name="pacScript">The URL associated with the PAC file.</param>
|
|
|
|
|
|
/// <param name="proxyRules">Rules indicating which proxies to use.</param>
|
|
|
|
|
|
/// <param name="proxyBypassRules">Rules indicating which URLs should bypass the proxy settings.</param>
|
|
|
|
|
|
public ProxyConfig(string pacScript, string proxyRules, string proxyBypassRules)
|
|
|
|
|
|
{
|
|
|
|
|
|
PacScript = pacScript;
|
|
|
|
|
|
ProxyRules = proxyRules;
|
|
|
|
|
|
ProxyBypassRules = proxyBypassRules;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
2025-11-15 08:05:31 +01:00
|
|
|
|
}
|