1
0

Update IP headers to support lowercase (#979)

This commit is contained in:
Geometrically
2023-02-02 11:15:37 -07:00
committed by GitHub
parent 6d242ee6c3
commit 8be42e78de

View File

@@ -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,
},