style: fix linter error

This commit is contained in:
theS1LV3R 2022-07-04 20:38:44 +02:00
parent 0a368ff553
commit c4125a8334
No known key found for this signature in database
GPG key ID: 1DF76CB829DAE8D4

View file

@ -1677,7 +1677,7 @@ async function shutdownFunction(signal) {
} }
function getClientIp(socket) { 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.request.headers["x-real-ip"]
|| socket.client.conn.remoteAddress.replace(/^.*:/, ""); || socket.client.conn.remoteAddress.replace(/^.*:/, "");
} }