diff options
author | multiplexd | 2020-02-17 19:50:27 +0000 |
---|---|---|
committer | C. McEnroe | 2020-02-17 23:07:29 -0500 |
commit | 460207440b9aff50c4681032315dfb662b5a61de (patch) | |
tree | 7e31d22a96ce5bbe596a4f1c41d3b9a24850d4fa | |
parent | 6be9aa9901c438a5bffd1dc572db6b8e0e1091ff (diff) |
Use the correct hostname in error message
Previously, the remote host to which catgirl(1) is connecting was used
in error reporting instead of the local bind address if the latter could
not be resolved.
-rw-r--r-- | irc.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -111,7 +111,7 @@ int ircConnect(const char *bindHost, const char *host, const char *port) { if (bindHost) { error = getaddrinfo(bindHost, NULL, &hints, &head); - if (error) errx(EX_NOHOST, "%s: %s", host, gai_strerror(error)); + if (error) errx(EX_NOHOST, "%s: %s", bindHost, gai_strerror(error)); for (struct addrinfo *ai = head; ai; ai = ai->ai_next) { sock = socket(ai->ai_family, ai->ai_socktype, ai->ai_protocol); |