Hi, I’m testing the Workers in the Playground available to all users and it seems the Request object does not have information about the connection and socket object. What I need is the IP address of the remote origin of the request:
const ip = req.headers['x-forwarded-for'] || req.connection.remoteAddress || req.socket.remoteAddress || (req.connection.socket ? req.connection.socket.remoteAddress : null);
Will this code work in the Beta and Production release of Workers? Or am I doing anything wrong and there is a different way to get the origin IP address?