config.proto 952 B

123456789101112131415161718192021222324252627282930313233343536
  1. syntax = "proto3";
  2. package v2ray.core.proxy.shadowsocks;
  3. option csharp_namespace = "V2Ray.Core.Proxy.Shadowsocks";
  4. option go_package = "github.com/v2fly/v2ray-core/v4/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_GCM = 1;
  17. AES_256_GCM = 2;
  18. CHACHA20_POLY1305 = 3;
  19. NONE = 4;
  20. }
  21. message ServerConfig {
  22. // UdpEnabled specified whether or not to enable UDP for Shadowsocks.
  23. // Deprecated. Use 'network' field.
  24. bool udp_enabled = 1 [deprecated = true];
  25. v2ray.core.common.protocol.User user = 2;
  26. repeated v2ray.core.common.net.Network network = 3;
  27. }
  28. message ClientConfig {
  29. repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
  30. }