adaptivecomputing/torque — pull request #170 by mej (2013-08-21 05:40:54+00:00)
Title: Fix logic for parsing port number out of string (Issue #169)

New logic is:
1. If the string starts with a colon, it must be port number only.
2. If the string consists ENTIRELY of digits, and it converts to a
valid TCP/UDP port number, assume it's only a port number.
3. Otherwise, parse it as a hostname with a possible ":port" suffix.