git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@10515
d7cf8633-e32d-0410-b094-
e92efae38249
address->addresstype = LHNETADDRESSTYPE_NONE;
port = 0;
colon = strrchr(string, ':');
- if (colon && (colon == strchr(string, ':') || (string[0] == '[' && colon - string > 0 && colon[-1] == ']'))I)
+ if (colon && (colon == strchr(string, ':') || (string[0] == '[' && colon - string > 0 && colon[-1] == ']')))
// EITHER: colon is the ONLY colon OR: colon comes after [...] delimited IPv6 address
// fixes misparsing of IPv6 addresses without port
{