config.proto 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  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_multiple_files = true;
  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. // Master config of V2Ray. V2Ray Core takes this config as input and functions accordingly.
  16. message Config {
  17. // Inbound handler configurations. Must have at least one item.
  18. repeated v2ray.core.app.proxyman.InboundHandlerConfig inbound = 1;
  19. // Outbound handler configurations. Must have at least one item. The first item is used as default for routing.
  20. repeated v2ray.core.app.proxyman.OutboundHandlerConfig outbound = 2;
  21. reserved 3;
  22. // App configuration. Must be one in the app directory.
  23. repeated v2ray.core.common.serial.TypedMessage app = 4;
  24. // Transport settings.
  25. v2ray.core.transport.Config transport = 5;
  26. }