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));