support dht nodes in magnet links

This commit is contained in:
Arvid Norberg
2010-11-07 19:18:16 +00:00
parent b3c0fa9f45
commit 02e15202f2
4 changed files with 33 additions and 8 deletions

View File

@@ -431,7 +431,7 @@ int test_main()
p.save_path = ".";
error_code ec;
const char* magnet_uri = "magnet:?xt=urn:btih:cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd"
"&tr=http://1&tr=http://2&tr=http://3&dn=foo";
"&tr=http://1&tr=http://2&tr=http://3&dn=foo&dht=127.0.0.1:43";
torrent_handle t = add_magnet_uri(*s, magnet_uri, p, ec);
TEST_CHECK(!ec);
if (ec) fprintf(stderr, "%s\n", ec.message().c_str());