rules: add proxy support

This patch adds proxy support for rules update.
rules: add support for https proxy

https proxy support was missing in previous commit.