config.proto 1011 B

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