portrange.go 281 B

123456789101112131415161718
  1. package testing
  2. import (
  3. v2net "github.com/v2ray/v2ray-core/common/net"
  4. )
  5. type PortRange struct {
  6. FromValue v2net.Port
  7. ToValue v2net.Port
  8. }
  9. func (this *PortRange) From() v2net.Port {
  10. return this.FromValue
  11. }
  12. func (this *PortRange) To() v2net.Port {
  13. return this.ToValue
  14. }