forked from SteamWar/SteamWar
Backend Fixes...
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user