config.proto 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. syntax = "proto3";
  2. package v2ray.core.proxy.shadowsocks;
  3. option csharp_namespace = "V2Ray.Core.Proxy.Shadowsocks";
  4. option go_package = "shadowsocks";
  5. option java_package = "com.v2ray.core.proxy.shadowsocks";
  6. option java_multiple_files = true;
  7. import "v2ray.com/core/common/net/network.proto";
  8. import "v2ray.com/core/common/protocol/user.proto";
  9. import "v2ray.com/core/common/protocol/server_spec.proto";
  10. message Account {
  11. enum OneTimeAuth {
  12. Auto = 0;
  13. Disabled = 1;
  14. Enabled = 2;
  15. }
  16. string password = 1;
  17. CipherType cipher_type = 2;
  18. OneTimeAuth ota = 3;
  19. }
  20. enum CipherType {
  21. UNKNOWN = 0;
  22. AES_128_CFB = 1;
  23. AES_256_CFB = 2;
  24. CHACHA20 = 3;
  25. CHACHA20_IETF = 4;
  26. AES_128_GCM = 5;
  27. AES_256_GCM = 6;
  28. CHACHA20_POLY1305 = 7;
  29. NONE = 8;
  30. }
  31. message ServerConfig {
  32. // UdpEnabled specified whether or not to enable UDP for Shadowsocks.
  33. // Deprecated. Use 'network' field.
  34. bool udp_enabled = 1 [deprecated = true];
  35. v2ray.core.common.protocol.User user = 2;
  36. repeated v2ray.core.common.net.Network network = 3;
  37. }
  38. message ClientConfig {
  39. repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
  40. }