From 2f418df8977c807a42934b2ad4abb9fae232319c Mon Sep 17 00:00:00 2001 From: Christopher Wellons Date: Sun, 3 Feb 2019 13:06:14 -0500 Subject: [PATCH] Don't use :port since that doesn't work with IPv6 --- endlessh.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endlessh.c b/endlessh.c index 75c6461..78f1c22 100644 --- a/endlessh.c +++ b/endlessh.c @@ -102,7 +102,7 @@ client_destroy(struct client *client) logmsg(LOG_DEBUG, "close(%d)", client->fd); long long dt = uepoch() - client->connect_time; logmsg(LOG_INFO, - "CLOSE host=%s:%d fd=%d " + "CLOSE host=%s port=%d fd=%d " "time=%lld.%03lld bytes=%lld", client->ipaddr, client->port, client->fd, dt / 1000, dt % 1000, @@ -606,7 +606,7 @@ main(int argc, char **argv) close(fd); } nclients++; - logmsg(LOG_INFO, "ACCEPT host=%s:%d fd=%d n=%d/%d", + logmsg(LOG_INFO, "ACCEPT host=%s port=%d fd=%d n=%d/%d", client->ipaddr, client->port, client->fd, nclients, config.max_clients); queue_append(queue, client);