Merge branch 'fix-localhost-nonstandard-port' into 'next'

Fix connecting to localhost on non-standard ports

See merge request STJr/SRB2!2551
This commit is contained in:
Lactozilla 2024-12-06 06:19:55 +00:00
commit 2daf39f566

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 ? ":" : "[]");