diff --git a/libretroshare/src/pqi/p3connmgr.cc b/libretroshare/src/pqi/p3connmgr.cc index 0ed4610a4..1643eb2bc 100644 --- a/libretroshare/src/pqi/p3connmgr.cc +++ b/libretroshare/src/pqi/p3connmgr.cc @@ -2691,7 +2691,7 @@ bool p3ConnectMgr::setDynDNS(std::string id, std::string dyndns) if (mOthersList.end() == (it = mOthersList.find(id))) { #ifdef CONN_DEBUG - std::cerr << "p3ConnectMgr::setLocalAddress() cannot add addres info : peer id not found in friend list id: " << id << std::endl; + std::cerr << "p3ConnectMgr::setDynDNS() cannot add dyn dns info : peer id not found in friend list id: " << id << std::endl; #endif return false; } diff --git a/libretroshare/src/rsserver/p3peers.cc b/libretroshare/src/rsserver/p3peers.cc index 8fbcb0b20..859ea5838 100644 --- a/libretroshare/src/rsserver/p3peers.cc +++ b/libretroshare/src/rsserver/p3peers.cc @@ -733,6 +733,9 @@ bool p3Peers::setExtAddress(std::string id, std::string addr_str, uint16_t port bool p3Peers::setDynDNS(std::string id, std::string dyndns) { +#ifdef P3PEERS_DEBUG + std::cerr << "p3Peers::setDynDNS() called with id: " << id << " dyndns: " << dyndns <setDynDNS(id, dyndns); } diff --git a/retroshare-gui/src/gui/connect/ConfCertDialog.cpp b/retroshare-gui/src/gui/connect/ConfCertDialog.cpp index 5276fadde..10ee1e14b 100644 --- a/retroshare-gui/src/gui/connect/ConfCertDialog.cpp +++ b/retroshare-gui/src/gui/connect/ConfCertDialog.cpp @@ -150,6 +150,8 @@ void ConfCertDialog::loadDialog() ui.extAddress->setText(QString::fromStdString(detail.extAddr)); ui.extPort -> setValue(detail.extPort); + ui.dynDNS->setText(QString::fromStdString(detail.dyndns)); + ui.ipAddressList->clear(); for(std::list::const_iterator it(detail.ipAddressList.begin());it!=detail.ipAddressList.end();++it) ui.ipAddressList->addItem(QString::fromStdString(*it)); @@ -311,7 +313,7 @@ void ConfCertDialog::applyDialog() /* check if the data is the same */ bool localChanged = false; bool extChanged = false; - bool fwChanged = false; + bool dnsChanged = false; /* set local address */ if ((detail.localAddr != ui.localAddress->text().toStdString()) || (detail.localPort != ui.localPort -> value())) @@ -320,6 +322,9 @@ void ConfCertDialog::applyDialog() if ((detail.extAddr != ui.extAddress->text().toStdString()) || (detail.extPort != ui.extPort -> value())) extChanged = true; + if ((detail.dyndns != ui.dynDNS->text().toStdString())) + dnsChanged = true; + /* now we can action the changes */ if (localChanged) rsPeers->setLocalAddress(mId, ui.localAddress->text().toStdString(), ui.localPort->value()); @@ -327,7 +332,10 @@ void ConfCertDialog::applyDialog() if (extChanged) rsPeers->setExtAddress(mId,ui.extAddress->text().toStdString(), ui.extPort->value()); - if(localChanged || extChanged) + if (dnsChanged) + rsPeers->setDynDNS(mId, ui.dynDNS->text().toStdString()); + + if(localChanged || extChanged || dnsChanged) emit configChanged() ; }