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.

NetSettings.cs 866 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. namespace Shadowsocks.Net.Settings
  5. {
  6. public class NetSettings
  7. {
  8. public bool EnableSocks5 { get; set; }
  9. public bool EnableHttp { get; set; }
  10. public string Socks5ListeningAddress { get; set; }
  11. public string HttpListeningAddress { get; set; }
  12. public int Socks5ListeningPort { get; set; }
  13. public int HttpListeningPort { get; set; }
  14. public ForwardProxySettings ForwardProxy { get; set; }
  15. public NetSettings()
  16. {
  17. EnableSocks5 = true;
  18. EnableHttp = true;
  19. Socks5ListeningAddress = "::1";
  20. HttpListeningAddress = "::1";
  21. Socks5ListeningPort = 1080;
  22. HttpListeningPort = 1080;
  23. ForwardProxy = new ForwardProxySettings();
  24. }
  25. }
  26. }