You've already forked AstralRinth
forked from xxxOFFxxx/AstralRinth
Update IP headers to support lowercase (#979)
This commit is contained in:
@@ -381,7 +381,8 @@ export default {
|
||||
{
|
||||
url: getDomain() + url,
|
||||
ip:
|
||||
context.req.headers['CF-Connecting-IP'] ??
|
||||
context.req.headers['cf-connecting-ip'] ??
|
||||
context.req.headers['x-real-ip'] ??
|
||||
context.req.connection.remoteAddress,
|
||||
headers: context.req.headers,
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user