Open arturv2000 opened 3 months ago
This feels like something that would live in the Node-RED settings.js
, rather than a UI-surfaced configuration
Yes, it can be something in settings, like a custom callback
to be called on io.on("connection", (socket)
, like the example here -> https://socket.io/how-to/get-the-ip-address-of-the-client. It can be defined in the same way as httpAdminMiddleware
for example, but eventually in a section dedicated to dashboard.
Description
Hi
Regarding the field
socketIp
that is added to each message in the_client
property. If using reverse proxys the client IP is always127.0.0.1
.Would it be possible to have a dashboard setting to indicate if we want to use the default
conn.handshake?.address
or to get it by some header likeconn.handshake.headers["x-forwarded-for"]
?Cloudfare for example uses header
CF-Connecting-IP
.Have you provided an initial effort estimate for this issue?
I am no FlowFuse team member