From c7ad0a90da283e5e5e308d15a53c8ab09a89f7b5 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sun, 7 Aug 2011 11:06:29 +0000 Subject: [PATCH] * Fixed 'network.http.dns_cache_timeout{,.set}'. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1265 e378c898-3ddf-0310-93e7-cc216c733640 --- src/command_groups.cc | 4 ++-- src/command_network.cc | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/command_groups.cc b/src/command_groups.cc index abdff5fd..72f7a5d1 100644 --- a/src/command_groups.cc +++ b/src/command_groups.cc @@ -85,12 +85,12 @@ cg_get_group(const torrent::Object& raw_args) { int64_t cg_d_group(core::Download* download) { - return torrent::resource_manager()->entry_at(download->main())->group(); + return torrent::resource_manager()->entry_at(download->main()).group(); } void cg_d_group_set(core::Download* download, const torrent::Object& arg) { - torrent::resource_manager::set_group(torrent::resource_manager()->find_throw(download->main()), cg_get_index(arg)); + torrent::resource_manager()->set_group(torrent::resource_manager()->find_throw(download->main()), cg_get_index(arg)); } torrent::Object diff --git a/src/command_network.cc b/src/command_network.cc index 64967511..af70e714 100644 --- a/src/command_network.cc +++ b/src/command_network.cc @@ -517,8 +517,8 @@ initialize_command_network() { CMD2_ANY_VALUE_V ("network.http.max_open.set", std::bind(&core::CurlStack::set_max_active, httpStack, std::placeholders::_2)); CMD2_ANY ("network.http.ssl_verify_peer", std::bind(&core::CurlStack::ssl_verify_peer, httpStack)); CMD2_ANY_VALUE_V ("network.http.ssl_verify_peer.set", std::bind(&core::CurlStack::set_ssl_verify_peer, httpStack, std::placeholders::_2)); - CMD2_ANY ("network.http.dns_cache_timeout", std::bind(&core::CurlStack::ssl_verify_peer, httpStack)); - CMD2_ANY_VALUE_V ("network.http.dns_cache_timeout.set", std::bind(&core::CurlStack::set_ssl_verify_peer, httpStack, std::placeholders::_2)); + CMD2_ANY ("network.http.dns_cache_timeout", std::bind(&core::CurlStack::dns_timeout, httpStack)); + CMD2_ANY_VALUE_V ("network.http.dns_cache_timeout.set", std::bind(&core::CurlStack::set_dns_timeout, httpStack, std::placeholders::_2)); CMD2_ANY ("network.send_buffer.size", std::bind(&torrent::ConnectionManager::send_buffer_size, cm)); CMD2_ANY_VALUE_V ("network.send_buffer.size.set", std::bind(&torrent::ConnectionManager::set_send_buffer_size, cm, std::placeholders::_2));