mirror of
https://github.com/yarrick/iodine.git
synced 2024-12-22 21:33:33 +02:00
Print getaddrinfo failure properly
This commit is contained in:
parent
559dafb030
commit
43a82ef6be
1 changed files with 2 additions and 1 deletions
|
@ -2612,7 +2612,8 @@ main(int argc, char **argv)
|
|||
addrfamily = AF_INET;
|
||||
}
|
||||
} else if (addr6_res < 0) {
|
||||
warn("Failed to get IPv6 address to listen on: '%s'", listen_ip6);
|
||||
warnx("Failed to get IPv6 address to listen on: '%s': %s",
|
||||
listen_ip6, gai_strerror(addr6_res));
|
||||
usage();
|
||||
} else {
|
||||
dns6addr_len = addr6_res;
|
||||
|
|
Loading…
Reference in a new issue