From 1ed191fa9f8d107a5c2bfcd4f9d2da6069a575bd Mon Sep 17 00:00:00 2001 From: joss17 Date: Sat, 1 May 2010 19:25:36 +0000 Subject: [PATCH] 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 --- libretroshare/src/services/p3disc.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/libretroshare/src/services/p3disc.cc b/libretroshare/src/services/p3disc.cc index 28fcd0b04..c748d550b 100644 --- a/libretroshare/src/services/p3disc.cc +++ b/libretroshare/src/services/p3disc.cc @@ -552,7 +552,9 @@ void p3disc::recvPeerDetails(RsDiscReply *item) //their info is fresher than ours (there is a 10000 seconds margin), update ours mConnMgr->setLocalAddress(pitem->pid, pitem->currentlocaladdr); 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); if (item->PeerId() == pitem->pid) { mConnMgr->setVisState(pitem->pid, pitem->visState); //update vistate only if it's from the peer itself