Skip to content
Snippets Groups Projects
Commit a5488e20 authored by Hanicef's avatar Hanicef
Browse files

Fix connecting to localhost on non-standard ports

parent c4dbf42d
Branches simplecam
No related tags found
No related merge requests found
...@@ -1143,7 +1143,7 @@ static void Internal_FreeNodenum(INT32 nodenum) ...@@ -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 ? ":" : "[]");
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment