Revert "use x-forwarded-for header instead of remote_addr"

use USE_X_FORWARDED_HOST setting instead

This reverts commit 8e0975320585b6a166bd2e02cf5360b14deb46ca.