config.proto 896 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. syntax = "proto3";
  2. package v2ray.core.transport.internet;
  3. option csharp_namespace = "V2Ray.Core.Transport.Internet";
  4. option go_package = "internet";
  5. option java_package = "com.v2ray.core.transport.internet";
  6. import "v2ray.com/core/common/serial/typed_message.proto";
  7. enum TransportProtocol {
  8. TCP = 0;
  9. UDP = 1;
  10. MKCP = 2;
  11. WebSocket = 3;
  12. }
  13. message TransportSettings {
  14. // Type of network that this settings supports.
  15. TransportProtocol protocol = 1;
  16. // Specific settings.
  17. v2ray.core.common.serial.TypedMessage settings = 2;
  18. }
  19. message StreamConfig {
  20. // Effective network.
  21. TransportProtocol protocol = 1;
  22. repeated TransportSettings transport_settings = 2;
  23. // Type of security. Must be a message name of the settings proto.
  24. string security_type = 3;
  25. repeated v2ray.core.common.serial.TypedMessage security_settings = 4;
  26. }
  27. message ProxyConfig {
  28. string tag = 1;
  29. }