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