forked from premiere/premiere-libtorrent
fixed DHT state save bug for node-id
This commit is contained in:
parent
6afa3d868b
commit
b066e4694b
|
@ -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
|
||||||
|
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue