From 09137fd6b5ff30639addcac837bc1c6e6ff78fcf Mon Sep 17 00:00:00 2001 From: Quentin Date: Sun, 8 Nov 2020 16:06:52 +0100 Subject: Log host --- src/web/web_server.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/web') diff --git a/src/web/web_server.rs b/src/web/web_server.rs index ce1f7ee1..a712a5bd 100644 --- a/src/web/web_server.rs +++ b/src/web/web_server.rs @@ -52,8 +52,8 @@ async fn handler( info!("authority is {}", authority); // Get HTTP domain/ip from host - //let domain = host.to_socket_ - + let host = authority_to_host(authority)?; + info!("host is {}", host); Ok(Response::new(Body::from("hello world\n"))) } -- cgit v1.2.3