Be more flexbile with reverse proxy usage

Add an option to force the remote addr with the X-Forwarded-For header
Fix the usage when bound to a unix socket instead of an TCP one.