forked from premiere/premiere-libtorrent
fixed http proxy (with authentication) bug
This commit is contained in:
parent
442998f06d
commit
afe6d95169
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue