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.
This commit is contained in:
Johann150 2021-02-25 14:14:08 +01:00
parent 9925d927a4
commit 1059f8b94a
No known key found for this signature in database
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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.