Deal better with displaying IPv6 addresses
This commit is contained in:
@@ -355,7 +355,10 @@ irc_establish_connection (struct bot_context *ctx,
|
||||
real_host = buf;
|
||||
|
||||
// XXX: we shouldn't mix these statuses with `struct error'; choose 1!
|
||||
print_status ("connecting to `%s:%s'...", real_host, port);
|
||||
char *address = format_host_port_pair (real_host, port);
|
||||
print_status ("connecting to %s...", address);
|
||||
free (address);
|
||||
|
||||
if (!connect (sockfd, gai_iter->ai_addr, gai_iter->ai_addrlen))
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user