aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorLibravatar Rutger Broekhoff2024-01-24 20:18:06 +0100
committerLibravatar Rutger Broekhoff2024-01-24 20:18:06 +0100
commitcd6189d473ac65ffe46ae1094125a6f0ec23a7c9 (patch)
treefdc5cf20469d9199d6ededb9465a77db037f7c35 /server/src
parentcfbb6cf7e35c1fac98ba615ac68e68d0e5591b67 (diff)
downloadgitolfs3-cd6189d473ac65ffe46ae1094125a6f0ec23a7c9.tar.gz
gitolfs3-cd6189d473ac65ffe46ae1094125a6f0ec23a7c9.zip
Debug X-Forward-For handling
Diffstat (limited to 'server/src')
-rw-r--r--server/src/main.rs1
1 files changed, 1 insertions, 0 deletions
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(
726 headers: &HeaderMap, 726 headers: &HeaderMap,
727 trusted: &HashSet<String>, 727 trusted: &HashSet<String>,
728) -> Result<bool, GitLfsErrorResponse<'static>> { 728) -> Result<bool, GitLfsErrorResponse<'static>> {
729 println!("Trusted: {:?}, headers: {:?}", trusted, headers);
729 if let Some(forwarded_for) = headers.get("X-Forwarded-For") { 730 if let Some(forwarded_for) = headers.get("X-Forwarded-For") {
730 if let Ok(forwarded_for) = forwarded_for.to_str() { 731 if let Ok(forwarded_for) = forwarded_for.to_str() {
731 if trusted.contains(forwarded_for) { 732 if trusted.contains(forwarded_for) {