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