style: fix linter error

pull/1827/head
theS1LV3R 2 years ago
parent 0a368ff553
commit c4125a8334
No known key found for this signature in database
GPG Key ID: 1DF76CB829DAE8D4

@ -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(/^.*:/, "");
}

Loading…
Cancel
Save