forked from premiere/premiere-libtorrent
fix
This commit is contained in:
parent
70199041f7
commit
1d677f24d2
|
@ -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());
|
||||
|
|
Loading…
Reference in New Issue