mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-02 06:06:10 -04:00
Restore Stunner functionality
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@7394 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
c87efec81b
commit
8d721c7a95
2 changed files with 9 additions and 3 deletions
|
@ -668,7 +668,13 @@ bool UdpStunner::storeStunPeer(const struct sockaddr_in &remote, const char *
|
|||
}
|
||||
}
|
||||
|
||||
TouStunPeer peer(std::string(peerid), remote);
|
||||
std::string peerstring;
|
||||
if (peerid)
|
||||
{
|
||||
peerstring = std::string(peerid);
|
||||
}
|
||||
|
||||
TouStunPeer peer(peerstring, remote);
|
||||
if (sent)
|
||||
{
|
||||
peer.failCount += 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue