mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-20 19:02:34 +00:00
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:
commit
2daf39f566
1 changed files with 1 additions and 1 deletions
|
@ -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 ? ":" : "[]");
|
||||
|
||||
|
|
Loading…
Reference in a new issue