Update IP headers to support lowercase (#979)

This commit is contained in:
Geometrically authored and GitHub committed 2023-02-02 11:15:37 -07:00
1 parent 6d242ee6c3
commit 8be42e78de
1 file changed
+2 -1
+2 -1
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,
},