Trust local proxy and use curl to test X-Forwarded-For
Revert "Trust local proxy and use curl to test X-Forwarded-For"

This reverts commit e8dbb283e094c3c3b9ce93e70ae9ddb2a1d0e369.