v2ray-core/common/net/testing/portrange.go

15 lines
205 B
Go
Raw Normal View History

2015-11-21 20:43:40 +00:00
package testing
type PortRange struct {
FromValue uint16
ToValue uint16
}
func (this *PortRange) From() uint16 {
return this.FromValue
}
func (this *PortRange) To() uint16 {
return this.ToValue
}