loghandler: Added X-Forwarded-For awareness for remote address.

Actually that is a really good question. This code is from some 'common' code for handling X-Forwarded-For headers. (https://www.google.nl/search?q=hdrForwardedFor&oq=hdrForwardedFor&aqs=chrome..69i57.267j0j7&sourceid=chrome&es_sm=91&ie=UTF-8#q=hdrForwardedFor&start=0&filter=0) But I agree that it is of no use in this case. Will remove it.