This commit is contained in:
arvidn 2016-09-22 16:28:12 -07:00
parent 70199041f7
commit 1d677f24d2
1 changed files with 1 additions and 1 deletions

View File

@ -51,10 +51,10 @@ int main(int argc, char* argv[])
settings_pack sett;
sett.set_str(settings_pack::listen_interfaces, "0.0.0.0:6881");
lt::session s(sett);
error_code ec;
add_torrent_params p;
p.save_path = "./";
p.ti = std::make_shared<torrent_info>(std::string(argv[1]), std::ref(ec), 0);
error_code ec;
if (ec)
{
std::fprintf(stderr, "%s\n", ec.message().c_str());