aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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) {