x-real-ip no longer has the client IP address, is always "unix:"

Title says it all - I have some middleware that needs to send the client IP in a payload which started erroring with 400s since last night. When I check the logs I can see the x-real-ip headers on these requests are always "unix:"
7 Replies
Walshy
Walshy5mo ago
i can't repro this - https://test.walshy.dev/reqinfo got a url showing the problem?
robin
robinOP5mo ago
odd - unfortunately not as it's middleware behind some services on our site for context the setup is a pages project with a /functions directory
robin
robinOP5mo ago
not hugely urgent as i can use cf-connecting-ip but worth potentially investigating
No description
robin
robinOP5mo ago
also @Walshy | DevPlat EE I can see one other example in this server https://discord.com/channels/595317990191398933/1385327321195741284/1385374738796249148
Walshy
Walshy5mo ago
could you share a url i can use to repro even if i can't see the output? i can see that internally, just want to try and figure out why
robin
robinOP5mo ago
It only seems to happen on our production site which is geo restricted to UK, and this specific call happens at the end of sign up on betzone.co.uk it also happens when you go to log in (you could possibly repro this way without needing to log in) if you go to betzone.co.uk and click the login button this will hit our auth middleware, it looks like this issue happens on that too
Walshy
Walshy5mo ago
ty

Did you find this page helpful?