parms.ti = info;\r
parms.paused = false;\r
\r
+ /* disable hash checking if configured */\r
+ if (Settings->GetI("hashcheck") == 0)\r
+ parms.seed_mode = true;\r
+\r
_torrent = _session->add_torrent(parms);\r
} catch(std::exception& e) {\r
std::cerr << "Could not add torrent (" << e.what() <<")" << std::endl;\r
std::cout << "\t-t, --nodht\t\t\tdisable dht (default: on)\n";
std::cout << "\t-n, --noupnp\t\t\tdisable upnp (default: on)\n";
std::cout << "\t-s, --noseed\t\t\tdisable seeding (default: enabled)\n";
+ std::cout << "\t-k, --nohashcheck\t\tdisable initial seeder hash checking (default: enabled)\n";
std::cout << "\t-f, --forcereannounce <time>\treannounce every X minutes (default: 2)\n";
std::cout << "\t-o, --outputdir <path>\t\tset the target directory (default: .)\n";
std::cout << "\t-i, --ipfilter\t\t\tenable ip filtering (default: off)\n";
};
while (1) {
- opt = getopt_long(argc, argv, "hiltnsvVp:P:d:u:c:f:o:",
+ opt = getopt_long(argc, argv, "hiltnskvVp:P:d:u:c:f:o:",
long_options, &option_index);
if (opt == -1)
break;
case 's':
Settings->Set("seed", 0);
break;
+ case 'k':
+ Settings->Set("hashcheck", 0);
+ break;
case 'v':
Settings->Set("verbose", 1);
break;