Added support for proxy type
Merge pull request #131 from grachov/use-proxy-improvement

Added support for proxy type