mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-06 21:58:57 -04:00
prevent sending/receiving of IP addresses to/at hidden nodes
This commit is contained in:
parent
0f6006d140
commit
ab60f49820
7 changed files with 77 additions and 24 deletions
|
@ -882,6 +882,11 @@ bool p3Peers::setHiddenNode(const RsPeerId &id, const std::string &hidden_node_
|
|||
}
|
||||
|
||||
|
||||
bool p3Peers::isHiddenNode(const RsPeerId &id)
|
||||
{
|
||||
return mPeerMgr->isHiddenNode(id) ;
|
||||
}
|
||||
|
||||
bool p3Peers::setHiddenNode(const RsPeerId &id, const std::string &address, uint16_t port)
|
||||
{
|
||||
#ifdef P3PEERS_DEBUG
|
||||
|
|
|
@ -94,6 +94,7 @@ public:
|
|||
virtual bool setLocation(const RsPeerId &ssl_id, const std::string &location);//location is shown in the gui to differentiate ssl certs
|
||||
virtual bool setHiddenNode(const RsPeerId &id, const std::string &hidden_node_address);
|
||||
virtual bool setHiddenNode(const RsPeerId &id, const std::string &address, uint16_t port);
|
||||
virtual bool isHiddenNode(const RsPeerId &id);
|
||||
|
||||
virtual bool setLocalAddress(const RsPeerId &id, const std::string &addr, uint16_t port);
|
||||
virtual bool setExtAddress(const RsPeerId &id, const std::string &addr, uint16_t port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue