config.proto 796 B

12345678910111213141516171819202122232425262728293031323334353637
  1. syntax = "proto3";
  2. package v2ray.core.app.reverse;
  3. option csharp_namespace = "V2Ray.Core.Proxy.Reverse";
  4. option go_package = "github.com/v2fly/v2ray-core/v5/app/reverse";
  5. option java_package = "com.v2ray.core.proxy.reverse";
  6. option java_multiple_files = true;
  7. import "common/protoext/extensions.proto";
  8. message Control {
  9. enum State {
  10. ACTIVE = 0;
  11. DRAIN = 1;
  12. }
  13. State state = 1;
  14. bytes random = 99;
  15. }
  16. message BridgeConfig {
  17. string tag = 1;
  18. string domain = 2;
  19. }
  20. message PortalConfig {
  21. string tag = 1;
  22. string domain = 2;
  23. }
  24. message Config {
  25. option (v2ray.core.common.protoext.message_opt).type = "service";
  26. option (v2ray.core.common.protoext.message_opt).short_name = "reverse";
  27. repeated BridgeConfig bridge_config = 1;
  28. repeated PortalConfig portal_config = 2;
  29. }