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:
joss17 2010-05-01 19:25:36 +00:00
parent 9cf20fd9fd
commit 1ed191fa9f

View File

@ -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);
mConnMgr->setDynDNS(pitem->pid, pitem->dyndns); if (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