From afe6d95169889ff8e5c25aaeeaa3c48526c887c1 Mon Sep 17 00:00:00 2001 From: Arvid Norberg Date: Sat, 26 Jan 2008 18:48:00 +0000 Subject: [PATCH] fixed http proxy (with authentication) bug --- src/instantiate_connection.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/instantiate_connection.cpp b/src/instantiate_connection.cpp index f9c997fb1..23a202da4 100644 --- a/src/instantiate_connection.cpp +++ b/src/instantiate_connection.cpp @@ -54,7 +54,7 @@ namespace libtorrent { s.instantiate(ios); s.get().set_proxy(ps.hostname, ps.port); - if (ps.type == proxy_settings::socks5_pw) + if (ps.type == proxy_settings::http_pw) s.get().set_username(ps.username, ps.password); } else if (ps.type == proxy_settings::socks5