Also, fix typo in ProxyForm Signed-off-by: Syrone Wong <wong.syrone@gmail.com>
30 lines
713 B
C#
30 lines
713 B
C#
using System;
|
|
|
|
namespace Shadowsocks.Model
|
|
{
|
|
[Serializable]
|
|
public class ProxyConfig
|
|
{
|
|
public const int PROXY_SOCKS5 = 0;
|
|
public const int PROXY_HTTP = 1;
|
|
|
|
public const int MaxProxyTimeoutSec = 10;
|
|
private const int DefaultProxyTimeoutSec = 3;
|
|
|
|
public bool useProxy;
|
|
public int proxyType;
|
|
public string proxyServer;
|
|
public int proxyPort;
|
|
public int proxyTimeout;
|
|
|
|
public ProxyConfig()
|
|
{
|
|
useProxy = false;
|
|
proxyType = PROXY_SOCKS5;
|
|
proxyServer = "";
|
|
proxyPort = 0;
|
|
proxyTimeout = DefaultProxyTimeoutSec;
|
|
}
|
|
}
|
|
}
|