mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-02-03 15:01:28 +00:00
Fix connecting to localhost on non-standard ports
This commit is contained in:
parent
c4dbf42ded
commit
a5488e2005
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)
|
char *I_NetSplitAddress(char *host, char **port)
|
||||||
{
|
{
|
||||||
boolean v4 = (strchr(host, '.') != NULL);
|
boolean v4 = (host[0] != '[');
|
||||||
|
|
||||||
host = strtok(host, v4 ? ":" : "[]");
|
host = strtok(host, v4 ? ":" : "[]");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue