From 1059f8b94a8951975f6a9f8c11571081cd281a97 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Thu, 25 Feb 2021 14:14:08 +0100 Subject: [PATCH] never log remote port This information is basically useless anyway and fills logs needlessly. Because this is not necessarily true for the local port because multiple ports may be selected for hosting, logging for the local socket address is unchanged. --- src/main.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main.rs b/src/main.rs index 0a6bf01..0f7178b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -233,6 +233,7 @@ impl RequestHandle { stream .peer_addr() .expect("could not get peer address") + .ip() .to_string() } else { // Do not log IP address, but something else so columns still line up.