port.proto 513 B

1234567891011121314151617181920
  1. syntax = "proto3";
  2. package xray.common.net;
  3. option csharp_namespace = "Xray.Common.Net";
  4. option go_package = "github.com/xtls/xray-core/common/net";
  5. option java_package = "com.xray.common.net";
  6. option java_multiple_files = true;
  7. // PortRange represents a range of ports.
  8. message PortRange {
  9. // The port that this range starts from.
  10. uint32 From = 1;
  11. // The port that this range ends with (inclusive).
  12. uint32 To = 2;
  13. }
  14. // PortList is a list of ports.
  15. message PortList {
  16. repeated PortRange range = 1;
  17. }