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;
|
settings_pack sett;
|
||||||
sett.set_str(settings_pack::listen_interfaces, "0.0.0.0:6881");
|
sett.set_str(settings_pack::listen_interfaces, "0.0.0.0:6881");
|
||||||
lt::session s(sett);
|
lt::session s(sett);
|
||||||
|
error_code ec;
|
||||||
add_torrent_params p;
|
add_torrent_params p;
|
||||||
p.save_path = "./";
|
p.save_path = "./";
|
||||||
p.ti = std::make_shared<torrent_info>(std::string(argv[1]), std::ref(ec), 0);
|
p.ti = std::make_shared<torrent_info>(std::string(argv[1]), std::ref(ec), 0);
|
||||||
error_code ec;
|
|
||||||
if (ec)
|
if (ec)
|
||||||
{
|
{
|
||||||
std::fprintf(stderr, "%s\n", ec.message().c_str());
|
std::fprintf(stderr, "%s\n", ec.message().c_str());
|
||||||
|
|
Loading…
Reference in New Issue