get correct host name and address if behind reverse proxy (fixes #80)
Merge pull request #533 from darkv/reverse_proxy_patch

Get correct host info