mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-11-24 02:15:59 +03:00
style: fix linter error
This commit is contained in:
parent
0a368ff553
commit
c4125a8334
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue