56 lines
1.5 KiB
C#
56 lines
1.5 KiB
C#
/*
|
|
* Copyright (c) 2019 ETH Zürich, Educational Development and Technology (LET)
|
|
*
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
*/
|
|
|
|
using System;
|
|
using System.Collections.Generic;
|
|
|
|
namespace SafeExamBrowser.Settings.Browser
|
|
{
|
|
/// <summary>
|
|
/// Defines the proxy settings for the browser engine.
|
|
/// </summary>
|
|
[Serializable]
|
|
public class BrowserProxySettings
|
|
{
|
|
/// <summary>
|
|
/// Determines whether proxy auto-configuration should be used. Requires a valid URL defined in <see cref="AutoConfigureUrl"/>.
|
|
/// </summary>
|
|
public bool AutoConfigure { get; set; }
|
|
|
|
/// <summary>
|
|
/// A valid URL to a proxy auto-configuration file (.pac). Is only evaluated if <see cref="AutoConfigure"/> is enabled.
|
|
/// </summary>
|
|
public string AutoConfigureUrl { get; set; }
|
|
|
|
/// <summary>
|
|
/// Forces proxy auto-detection by the browser engine.
|
|
/// </summary>
|
|
public bool AutoDetect { get; set; }
|
|
|
|
/// <summary>
|
|
/// A list of hosts for which all proxy settings should be bypassed.
|
|
/// </summary>
|
|
public IList<string> BypassList { get; set; }
|
|
|
|
/// <summary>
|
|
/// The proxy policy to be used.
|
|
/// </summary>
|
|
public ProxyPolicy Policy { get; set; }
|
|
|
|
/// <summary>
|
|
/// Defines all proxies to be used.
|
|
/// </summary>
|
|
public IList<ProxySettings> Proxies { get; set; }
|
|
|
|
public BrowserProxySettings()
|
|
{
|
|
BypassList = new List<string>();
|
|
Proxies = new List<ProxySettings>();
|
|
}
|
|
}
|
|
}
|