diff --git a/examples/client_test.cpp b/examples/client_test.cpp index 7bca1fc01..b325d6a8d 100644 --- a/examples/client_test.cpp +++ b/examples/client_test.cpp @@ -1260,7 +1260,7 @@ int main(int argc, char* argv[]) if (seed_mode) p.flags |= add_torrent_params::flag_seed_mode; if (disable_storage) p.storage = disabled_storage_constructor; if (share_mode) p.flags |= add_torrent_params::flag_share_mode; - p.tracker_url = argv[i] + 41; + p.trackers.push_back(argv[i] + 41); p.info_hash = info_hash; p.save_path = save_path; p.storage_mode = (storage_mode_t)allocation_mode; diff --git a/src/magnet_uri.cpp b/src/magnet_uri.cpp index 8719a05fb..8c418dc65 100644 --- a/src/magnet_uri.cpp +++ b/src/magnet_uri.cpp @@ -95,8 +95,8 @@ namespace libtorrent return ret; } -#ifndef BOOST_NO_EXCEPTIONS #ifndef TORRENT_NO_DEPRECATE +#ifndef BOOST_NO_EXCEPTIONS torrent_handle add_magnet_uri(session& ses, std::string const& uri , std::string const& save_path , storage_mode_t storage_mode