Add support for proxy settings for https

re #6175