config.proto 886 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  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/protocol/user.proto";
  8. import "v2ray.com/core/common/protocol/server_spec.proto";
  9. message Account {
  10. enum OneTimeAuth {
  11. Auto = 0;
  12. Disabled = 1;
  13. Enabled = 2;
  14. }
  15. string password = 1;
  16. CipherType cipher_type = 2;
  17. OneTimeAuth ota = 3;
  18. }
  19. enum CipherType {
  20. UNKNOWN = 0;
  21. AES_128_CFB = 1;
  22. AES_256_CFB = 2;
  23. CHACHA20 = 3;
  24. CHACHA20_IETF = 4;
  25. AES_128_GCM = 5;
  26. AES_256_GCM = 6;
  27. CHACHA20_POLY1305 = 7;
  28. }
  29. message ServerConfig {
  30. bool udp_enabled = 1;
  31. v2ray.core.common.protocol.User user = 2;
  32. }
  33. message ClientConfig {
  34. repeated v2ray.core.common.protocol.ServerEndpoint server = 1;
  35. }