config.proto 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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. DomainSocket = 5;
  15. }
  16. message TransportConfig {
  17. // Type of network that this settings supports.
  18. TransportProtocol protocol = 1;
  19. // Specific settings. Must be of the transports.
  20. v2ray.core.common.serial.TypedMessage settings = 2;
  21. }
  22. message StreamConfig {
  23. // Effective network.
  24. TransportProtocol protocol = 1;
  25. repeated TransportConfig transport_settings = 2;
  26. // Type of security. Must be a message name of the settings proto.
  27. string security_type = 3;
  28. // Settings for transport security. For now the only choice is TLS.
  29. repeated v2ray.core.common.serial.TypedMessage security_settings = 4;
  30. }
  31. message ProxyConfig {
  32. string tag = 1;
  33. }