The problem: socks5 proxy settings ignored for SSL connections.
Example: next request
ibrowse:send_req("http://www.google.com",[], get, [], [{socks5_host, "127.0.0.1"}, {socks5_port, 12345}])
will be send through proxy 127.0.0.1: 12345 as expected. But the same HTTPS request
ibrowse:send_req("https://www.google.com",[], get, [], [{socks5_host, "127.0.0.1"}, {socks5_port, 12345}])
will be send directly to www.google.com
Decision: this commit upgrades socks5 proxy connection to SSL connection if needed.
The problem: socks5 proxy settings ignored for SSL connections.
Example: next request
ibrowse:send_req("http://www.google.com",[], get, [], [{socks5_host, "127.0.0.1"}, {socks5_port, 12345}])
will be send through proxy 127.0.0.1: 12345 as expected. But the same HTTPS requestibrowse:send_req("https://www.google.com",[], get, [], [{socks5_host, "127.0.0.1"}, {socks5_port, 12345}])
will be send directly to www.google.comDecision: this commit upgrades socks5 proxy connection to SSL connection if needed.