diff options
author | Přemysl Janouch <p.janouch@gmail.com> | 2014-08-17 16:17:11 +0200 |
---|---|---|
committer | Přemysl Janouch <p.janouch@gmail.com> | 2014-08-17 16:59:59 +0200 |
commit | 3afd81df9b58a1a0356a1104bb80d17165f5787b (patch) | |
tree | 607cb9a850ba91888dc185ca749596dfa38e249f /zyklonb.c | |
parent | 8632e5fe8335476b82233708dd3d751cf1e7026b (diff) | |
download | xK-3afd81df9b58a1a0356a1104bb80d17165f5787b.tar.gz xK-3afd81df9b58a1a0356a1104bb80d17165f5787b.tar.xz xK-3afd81df9b58a1a0356a1104bb80d17165f5787b.zip |
Deal better with displaying IPv6 addresses
Diffstat (limited to 'zyklonb.c')
-rw-r--r-- | zyklonb.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |