update our id in the rpc manager when it changes (#942)

update our id in the rpc manager when it changes
This commit is contained in:
Steven Siloti 2016-07-24 18:30:36 -07:00 committed by Arvid Norberg
parent f05fad0d41
commit 3321ca10f1
3 changed files with 4 additions and 0 deletions

View File

@ -25,6 +25,7 @@
* fix set_settings in python binding
* Added missing alert categories in python binding
* Added dht_get_peers_reply_alert alert in python binding
* fixed updating the node id reported to peers after changing IPs
1.1.0 release

View File

@ -111,6 +111,8 @@ public:
int num_allocated_observers() const { return m_allocated_observers; }
void update_node_id(node_id const& id) { m_our_id = id; }
private:
boost::uint32_t calc_connection_id(udp::endpoint addr);

View File

@ -138,6 +138,7 @@ void node::update_node_id()
m_id = generate_id(m_observer->external_address());
m_table.update_node_id(m_id);
m_rpc.update_node_id(m_id);
}
bool node::verify_token(std::string const& token, char const* info_hash