From c4125a8334d0fb4c7737a96d928f745fa9360b0a Mon Sep 17 00:00:00 2001 From: theS1LV3R Date: Mon, 4 Jul 2022 20:38:44 +0200 Subject: [PATCH] style: fix linter error --- server/server.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/server.js b/server/server.js index 476f8664..d3ae075d 100644 --- a/server/server.js +++ b/server/server.js @@ -1677,7 +1677,7 @@ async function shutdownFunction(signal) { } function getClientIp(socket) { - return socket.client.conn.request.headers["x-forwarded-for"] + return socket.client.conn.request.headers["x-forwarded-for"] || socket.client.conn.request.headers["x-real-ip"] || socket.client.conn.remoteAddress.replace(/^.*:/, ""); }