I didn't see any relevant tests to change.
Thanks for your patch!
Could you please add a changelog entry ?
Also, I think that you could add a test here stubbing a request with the given IP in #12638 and asserting the expected result.
Make remote_ip detection properly handle private IPv6 addresses
@robin850 Done, PTAL.