Revert "use X-forwarded-For header if no remote addr is supplied"

This reverts commit 3a8aa9cf7f201009809bb8262b0ab1b5535fbc19.