workaround for failure to bind tcp/quic listeners

This commit is contained in:
Jun Kurihara 2022-07-06 21:16:46 +09:00
commit 1c4e450f1d
No known key found for this signature in database
GPG key ID: 48ADFD173ED22B03
4 changed files with 51 additions and 6 deletions

View file

@ -32,10 +32,14 @@ where
client_addr: SocketAddr, // アクセス制御用
) -> Result<Response<Body>> {
info!(
"Handling {:?} request from {}: {} {} {:?}",
"Handling {:?} request from {}: {} {:?} {} {:?}",
req.version(),
client_addr,
req.method(),
req
.headers()
.get("host")
.map_or_else(|| "<none>", |h| h.to_str().unwrap()),
req.uri(),
req
.headers()