Backend Fixes...

This commit is contained in:
2024-11-26 16:34:24 +01:00
parent df37fa1564
commit d5c06688f0
2 changed files with 4 additions and 3 deletions
@@ -50,7 +50,7 @@ fun Application.configurePlugins() {
it.request.headers["X-Forwarded-For"] ?: it.request.local.remoteHost
}
requestWeight { applicationCall, _ ->
if(applicationCall.request.headers["X-Forwarded-For"] != null) {
if(!applicationCall.request.headers.contains("X-Forwarded-For")) {
0
} else {
1