mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-18 10:58:43 -04:00
Various Bugfixes:
* Clear discFlags before creating DiscItem packets. * Don't call stunStatus/peerStatus if refering to self (p3disc). * Expand allowed listen port range. * Limit max size of stored StunList. git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@357 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
b64b88df4a
commit
e87b7b75e7
3 changed files with 7 additions and 3 deletions
|
@ -326,6 +326,7 @@ void p3disc::sendOwnDetails(std::string to)
|
|||
di -> contact_tf = 0;
|
||||
|
||||
/* construct disc flags */
|
||||
di -> discFlags = 0;
|
||||
if (!(detail.visState & RS_VIS_STATE_NODISC))
|
||||
{
|
||||
di->discFlags |= P3DISC_FLAGS_USE_DISC;
|
||||
|
@ -545,7 +546,8 @@ void p3disc::recvPeerFriendMsg(RsDiscReply *item)
|
|||
flags |= RS_NET_FLAGS_EXTERNAL_ADDR;
|
||||
}
|
||||
|
||||
if (loaded)
|
||||
/* only valid certs, and not ourselves */
|
||||
if ((loaded) && (peerId != mConnMgr->getOwnId()))
|
||||
{
|
||||
mConnMgr->peerStatus(peerId, item->laddr,
|
||||
item->saddr, type, flags, RS_CB_DISC);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue