1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-07-07 22:04:30 -04:00
v2fly/common/net/port.proto

21 lines
520 B
Protocol Buffer
Raw Normal View History

2016-08-26 18:04:35 -04:00
syntax = "proto3";
2016-09-26 09:14:16 -04:00
package v2ray.core.common.net;
2016-12-22 18:24:28 -05:00
option csharp_namespace = "V2Ray.Core.Common.Net";
option go_package = "v2ray.com/core/common/net";
2016-09-26 09:14:16 -04:00
option java_package = "com.v2ray.core.common.net";
2017-02-03 17:15:10 -05:00
option java_multiple_files = true;
2016-08-26 18:04:35 -04:00
// PortRange represents a range of ports.
message PortRange {
2017-02-08 04:01:22 -05:00
// The port that this range starts from.
2016-08-26 18:04:35 -04:00
uint32 From = 1;
2017-02-08 04:01:22 -05:00
// The port that this range ends with (inclusive).
2016-08-26 18:04:35 -04:00
uint32 To = 2;
}
2019-02-24 17:43:00 -05:00
// PortList is a list of ports.
message PortList {
repeated PortRange range = 1;
}