Add support for proxy

Signed-off-by: Seif Lotfy <sfl@nexttuesday.de>