You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

ProxyConfig.cs 713 B

1234567891011121314151617181920212223242526272829
  1. using System;
  2. namespace Shadowsocks.Model
  3. {
  4. [Serializable]
  5. public class ProxyConfig
  6. {
  7. public const int PROXY_SOCKS5 = 0;
  8. public const int PROXY_HTTP = 1;
  9. public const int MaxProxyTimeoutSec = 10;
  10. private const int DefaultProxyTimeoutSec = 3;
  11. public bool useProxy;
  12. public int proxyType;
  13. public string proxyServer;
  14. public int proxyPort;
  15. public int proxyTimeout;
  16. public ProxyConfig()
  17. {
  18. useProxy = false;
  19. proxyType = PROXY_SOCKS5;
  20. proxyServer = "";
  21. proxyPort = 0;
  22. proxyTimeout = DefaultProxyTimeoutSec;
  23. }
  24. }
  25. }