config.proto 645 B

1234567891011121314151617181920212223242526272829303132
  1. syntax = "proto3";
  2. package v2ray.core.app.policy;
  3. option csharp_namespace = "V2Ray.Core.App.Policy";
  4. option go_package = "policy";
  5. option java_package = "com.v2ray.core.app.policy";
  6. option java_multiple_files = true;
  7. message Second {
  8. uint32 value = 1;
  9. }
  10. message Policy {
  11. // Timeout is a message for timeout settings in various stages, in seconds.
  12. message Timeout {
  13. Second handshake = 1;
  14. Second connection_idle = 2;
  15. Second uplink_only = 3;
  16. Second downlink_only = 4;
  17. }
  18. message Stats {
  19. bool enable_per_user = 1;
  20. }
  21. Timeout timeout = 1;
  22. Stats stats = 2;
  23. }
  24. message Config {
  25. map<uint32, Policy> level = 1;
  26. }