config.proto 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. option java_multiple_files = true;
  7. import "v2ray.com/core/common/serial/typed_message.proto";
  8. enum TransportProtocol {
  9. TCP = 0;
  10. UDP = 1;
  11. MKCP = 2;
  12. WebSocket = 3;
  13. HTTP = 4;
  14. }
  15. message TransportConfig {
  16. // Type of network that this settings supports.
  17. TransportProtocol protocol = 1;
  18. // Specific settings. Must be of the transports.
  19. v2ray.core.common.serial.TypedMessage settings = 2;
  20. }
  21. message StreamConfig {
  22. // Effective network.
  23. TransportProtocol protocol = 1;
  24. repeated TransportConfig transport_settings = 2;
  25. // Type of security. Must be a message name of the settings proto.
  26. string security_type = 3;
  27. // Settings for transport security. For now the only choice is TLS.
  28. repeated v2ray.core.common.serial.TypedMessage security_settings = 4;
  29. }
  30. message ProxyConfig {
  31. string tag = 1;
  32. }