namespace ElectronNET.API.Entities
{
///
/// Proxy configuration for app.setProxy / session.setProxy. Matches Electron's ProxyConfig structure.
///
public class ProxyConfig
{
///
/// 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'.
///
public string Mode { get; set; }
///
/// The URL associated with the PAC file.
///
public string PacScript { get; set; }
///
/// Rules indicating which proxies to use.
///
public string ProxyRules { get; set; }
///
/// Rules indicating which URLs should bypass the proxy settings.
///
public string ProxyBypassRules { get; set; }
///
///
///
/// The URL associated with the PAC file.
/// Rules indicating which proxies to use.
/// Rules indicating which URLs should bypass the proxy settings.
public ProxyConfig(string pacScript, string proxyRules, string proxyBypassRules)
{
PacScript = pacScript;
ProxyRules = proxyRules;
ProxyBypassRules = proxyBypassRules;
}
}
}