Improve support for trusting proxy headers.