fixed http proxy (with authentication) bug

This commit is contained in:
Arvid Norberg 2008-01-26 18:48:00 +00:00
parent 442998f06d
commit afe6d95169
1 changed files with 1 additions and 1 deletions

View File

@ -54,7 +54,7 @@ namespace libtorrent
{
s.instantiate<http_stream>(ios);
s.get<http_stream>().set_proxy(ps.hostname, ps.port);
if (ps.type == proxy_settings::socks5_pw)
if (ps.type == proxy_settings::http_pw)
s.get<http_stream>().set_username(ps.username, ps.password);
}
else if (ps.type == proxy_settings::socks5