Adding option to get IP address from X-headers.

This is necessary when BITS is reverse-proxied.
Fixes a previous misconfiguration.