Skip to content

Commit e9e246d

Browse files
committed
Fix: export getClientIp from security.js
1 parent 19f8a47 commit e9e246d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/security.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ const REQUIRED_BROWSER_HEADERS = {
4141

4242
const FOUR_SECONDS = 4000;
4343

44-
function getClientIp(req) {
44+
export function getClientIp(req) {
4545
const forwarded = req.headers['x-forwarded-for'];
4646
if (forwarded) return forwarded.split(',')[0].trim();
4747
return req.ip || req.socket.remoteAddress || '0.0.0.0';

0 commit comments

Comments
 (0)