Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removes extraneous bracket from literal IPv6 URLs. Closes #1237
  • Loading branch information
nnposter committed Jun 12, 2018
1 parent d077f1e commit ec38cb0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions CHANGELOG
@@ -1,5 +1,8 @@
#Nmap Changelog ($Id$); -*-text-*-

o [Ncat][GH#1237] Fixed literal IPv6 URL format for connecting through
HTTP proxies. [Phil Dibowitz]

o [NSE][GH#1212] Updates vendors from ODVA list for enip-info. [NothinRandom]

o [NSE][GH#1191] Add two common error strings that improve MySQL detection
Expand Down
2 changes: 1 addition & 1 deletion ncat/ncat_connect.c
Expand Up @@ -353,7 +353,7 @@ static const char *sock_to_url(char *host_str, unsigned short port)
Snprintf(buf, sizeof(buf), "%s:%hu", host_str, port);
break;
case 2:
Snprintf(buf, sizeof(buf), "[%s]:%hu]", host_str, port);
Snprintf(buf, sizeof(buf), "[%s]:%hu", host_str, port);
}

return buf;
Expand Down

0 comments on commit ec38cb0

Please sign in to comment.