Class | RHC::Commands::PortForward |
In: |
lib/rhc/commands/port_forward.rb
|
Parent: | Base |
UP_TO_256 | = | /25[0-5]|2[0-4][0-9]|[01]?(?:[0-9][0-9]?)/ | ||
UP_TO_65535 | = | /6553[0-5]|655[0-2][0-9]|65[0-4][0-9][0-9]|6[0-4][0-9][0-9][0-9]|[0-5]?(?:[0-9][0-9]{0,3})/ | ||
HOST_AND_PORT | = | /(.+):(#{UP_TO_65535})\b/ | ‘host’ part is a bit lax; we rely on ‘rhc-list-ports’ to hand us a reasonable output about the host information, be it numeric or FQDN in IPv4 or IPv6. |