discovery: add ability to proxy discovery requests
Merge pull request #909 from jonboulle/proxy

Support corporate proxy via env var