We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19f8a47 commit e9e246dCopy full SHA for e9e246d
1 file changed
services/security.js
@@ -41,7 +41,7 @@ const REQUIRED_BROWSER_HEADERS = {
41
42
const FOUR_SECONDS = 4000;
43
44
-function getClientIp(req) {
+export function getClientIp(req) {
45
const forwarded = req.headers['x-forwarded-for'];
46
if (forwarded) return forwarded.split(',')[0].trim();
47
return req.ip || req.socket.remoteAddress || '0.0.0.0';
0 commit comments