mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
don't assign an empty dydns address with p3disc
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@2823 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
9cf20fd9fd
commit
1ed191fa9f
@ -552,7 +552,9 @@ void p3disc::recvPeerDetails(RsDiscReply *item)
|
|||||||
//their info is fresher than ours (there is a 10000 seconds margin), update ours
|
//their info is fresher than ours (there is a 10000 seconds margin), update ours
|
||||||
mConnMgr->setLocalAddress(pitem->pid, pitem->currentlocaladdr);
|
mConnMgr->setLocalAddress(pitem->pid, pitem->currentlocaladdr);
|
||||||
mConnMgr->setExtAddress(pitem->pid, pitem->currentremoteaddr);
|
mConnMgr->setExtAddress(pitem->pid, pitem->currentremoteaddr);
|
||||||
|
if (pitem->dyndns != "") {
|
||||||
mConnMgr->setDynDNS(pitem->pid, pitem->dyndns);
|
mConnMgr->setDynDNS(pitem->pid, pitem->dyndns);
|
||||||
|
}
|
||||||
mConnMgr->setNetworkMode(pitem->pid, pitem->netMode);
|
mConnMgr->setNetworkMode(pitem->pid, pitem->netMode);
|
||||||
if (item->PeerId() == pitem->pid) {
|
if (item->PeerId() == pitem->pid) {
|
||||||
mConnMgr->setVisState(pitem->pid, pitem->visState); //update vistate only if it's from the peer itself
|
mConnMgr->setVisState(pitem->pid, pitem->visState); //update vistate only if it's from the peer itself
|
||||||
|
Loading…
Reference in New Issue
Block a user