mirror of
https://github.com/nmap/nmap.git
synced 2026-02-05 21:16:33 +00:00
Fix Ncat IPv6 HTTP CONNECT proxy syntax.
Patch by Joachim Henke. http://seclists.org/nmap-dev/2013/q1/413
This commit is contained in:
@@ -277,7 +277,7 @@ static const char *sock_to_url(const union sockaddr_u *su)
|
||||
if (su->storage.ss_family == AF_INET)
|
||||
Snprintf(buf, sizeof(buf), "%s:%hu", host_str, port);
|
||||
else if (su->storage.ss_family == AF_INET6)
|
||||
Snprintf(buf, sizeof(buf), "[%s]:%hu]", host_str, port);
|
||||
Snprintf(buf, sizeof(buf), "[%s]:%hu", host_str, port);
|
||||
else
|
||||
bye("Unknown address family in sock_to_url_host.");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user