config.proto 960 B

12345678910111213141516171819202122232425262728293031
  1. syntax = "proto3";
  2. package v2ray.core;
  3. option csharp_namespace = "V2Ray.Core";
  4. option go_package = "core";
  5. option java_package = "com.v2ray.core";
  6. option java_outer_classname = "ConfigProto";
  7. import "v2ray.com/core/app/proxyman/config.proto";
  8. import "v2ray.com/core/common/serial/typed_message.proto";
  9. import "v2ray.com/core/transport/config.proto";
  10. // Configuration serialization format.
  11. enum ConfigFormat {
  12. Protobuf = 0;
  13. JSON = 1;
  14. }
  15. message Config {
  16. // Inbound handler configurations. Must have at least one item.
  17. repeated v2ray.core.app.proxyman.InboundHandlerConfig inbound = 1;
  18. // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
  19. repeated v2ray.core.app.proxyman.OutboundHandlerConfig outbound = 2;
  20. reserved 3;
  21. // App configuration. Must be one in the app directory.
  22. repeated v2ray.core.common.serial.TypedMessage app = 4;
  23. v2ray.core.transport.Config transport = 5;
  24. }