fix: Use proper headers to determine IP when not behind cloudflare (#764)

Signed-off-by: IAmTomahawkx <iamtomahawkx@gmail.com>
This commit is contained in:
Tom
2026-05-18 10:51:19 -07:00
committed by GitHub
parent 26a8692677
commit 494c8b7cab
2 changed files with 4 additions and 3 deletions

View File

@@ -152,6 +152,7 @@ pub async fn web() -> Rocket<Build> {
limits: rocket::data::Limits::default().limit("string", 5.megabytes()),
address: Ipv4Addr::new(0, 0, 0, 0).into(),
port: 14702,
ip_header: Some("X-Forwarded-For".into()),
..Default::default()
})
}