fixed DHT state save bug for node-id

This commit is contained in:
Arvid Norberg 2009-11-10 17:01:05 +00:00
parent 6afa3d868b
commit b066e4694b
2 changed files with 2 additions and 3 deletions

View File

@ -102,6 +102,7 @@ release 0.14.7
* back-ported some fixes for building with no exceptions * back-ported some fixes for building with no exceptions
* fixed create_torrent when passing in a path ending with / * fixed create_torrent when passing in a path ending with /
* fixed move_storage when source doesn't exist * fixed move_storage when source doesn't exist
* fixed DHT state save bug for node-id
release 0.14.6 release 0.14.6

View File

@ -569,9 +569,7 @@ namespace libtorrent { namespace dht
ret["nodes"] = nodes; ret["nodes"] = nodes;
} }
char node_id[41]; ret["node-id"] = m_dht.nid().to_string();
to_hex((char*)&m_dht.nid()[0], 20, node_id);
ret["node-id"] = node_id;
return ret; return ret;
} }