From cd6189d473ac65ffe46ae1094125a6f0ec23a7c9 Mon Sep 17 00:00:00 2001 From: Rutger Broekhoff Date: Wed, 24 Jan 2024 20:18:06 +0100 Subject: Debug X-Forward-For handling --- server/src/main.rs | 1 + 1 file changed, 1 insertion(+) (limited to 'server') diff --git a/server/src/main.rs b/server/src/main.rs index b6c0ad4..9826873 100644 --- a/server/src/main.rs +++ b/server/src/main.rs @@ -726,6 +726,7 @@ fn forwarded_for_trusted_host( headers: &HeaderMap, trusted: &HashSet, ) -> Result> { + println!("Trusted: {:?}, headers: {:?}", trusted, headers); if let Some(forwarded_for) = headers.get("X-Forwarded-For") { if let Ok(forwarded_for) = forwarded_for.to_str() { if trusted.contains(forwarded_for) { -- cgit v1.2.3