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