This commit is contained in:
walker0643
2018-03-06 13:55:27 -05:00
parent b4604b0921
commit 24987e0694
21 changed files with 213 additions and 145 deletions

View File

@@ -87,7 +87,7 @@ NetworkAddress::NetworkAddress(const String& hostname, int port) :
// notation. in that case we assume it's not a port suffix.
// the user can replace the double colon with zeros to
// disambiguate.
if ((!doubleColon || dotNotation) || !colonNotation) {
if ((!doubleColon || dotNotation) && !colonNotation) {
// parse port from hostname
char* end;
const char* chostname = m_hostname.c_str();