config.proto 983 B

1234567891011121314151617181920212223242526272829303132333435363738
  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. bool replay_protection = 3;
  14. }
  15. enum CipherType {
  16. UNKNOWN = 0;
  17. AES_128_GCM = 1;
  18. AES_256_GCM = 2;
  19. CHACHA20_POLY1305 = 3;
  20. NONE = 4;
  21. }
  22. message ServerConfig {
  23. // UdpEnabled specified whether or not to enable UDP for Shadowsocks.
  24. // Deprecated. Use 'network' field.
  25. bool udp_enabled = 1 [deprecated = true];
  26. v2ray.core.common.protocol.User user = 2;
  27. repeated v2ray.core.common.net.Network network = 3;
  28. }
  29. message ClientConfig {
  30. repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
  31. }