From 7a104bbb0758404e361b21e9ede2a7b8903bc361 Mon Sep 17 00:00:00 2001 From: xenofem Date: Sat, 16 Apr 2022 13:38:26 -0400 Subject: [PATCH] log real IPs, not IP of reverse proxy --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index b43aac9..05dffcf 100644 --- a/src/main.rs +++ b/src/main.rs @@ -73,7 +73,7 @@ async fn main() -> std::io::Result<()> { HttpServer::new(move || { App::new() .app_data(state.clone()) - .wrap(Logger::default()) + .wrap(Logger::new(r#"%{r}a "%r" %s %b "%{Referer}i" "%{User-Agent}i" %T"#)) .service(csv) .service(json) .service(actix_files::Files::new("/", static_dir.clone()).index_file("index.html"))