Fix connecting to localhost on non-standard ports

This commit is contained in:
Gustaf Alhäll 2024-12-01 15:59:19 +01:00
parent c4dbf42ded
commit a5488e2005

View file

@ -1143,7 +1143,7 @@ static void Internal_FreeNodenum(INT32 nodenum)
char *I_NetSplitAddress(char *host, char **port)
{
boolean v4 = (strchr(host, '.') != NULL);
boolean v4 = (host[0] != '[');
host = strtok(host, v4 ? ":" : "[]");