github.com/v2fly/v2ray-core/v5@v5.16.2-0.20240507031116-8191faa6e095/common/net/port.proto (about) 1 syntax = "proto3"; 2 3 package v2ray.core.common.net; 4 option csharp_namespace = "V2Ray.Core.Common.Net"; 5 option go_package = "github.com/v2fly/v2ray-core/v5/common/net"; 6 option java_package = "com.v2ray.core.common.net"; 7 option java_multiple_files = true; 8 9 // PortRange represents a range of ports. 10 message PortRange { 11 // The port that this range starts from. 12 uint32 From = 1; 13 // The port that this range ends with (inclusive). 14 uint32 To = 2; 15 } 16 17 // PortList is a list of ports. 18 message PortList { 19 repeated PortRange range = 1; 20 }