Don't use :port since that doesn't work with IPv6

This commit is contained in:
Christopher Wellons 2019-02-03 13:06:14 -05:00
parent 94d9a91407
commit 2f418df897

View File

@ -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);