don't check for existance

pull/2/head
Tom Early 3 years ago
parent b8dc598e38
commit 0090135843

@ -686,13 +686,7 @@ void CReflector::GetDHTConfig(const std::string &cs)
{
static SUrfdConfig1 cfg;
cfg.timestamp = 0; // every time this is called, zero the timestamp
auto item = g_GateKeeper.GetInterlinkMap()->FindMapItem(cs);
g_GateKeeper.ReleaseInterlinkMap();
if (nullptr == item)
{
std::cerr << "Can't Get() for " << cs << " because it doesn't exist" << std::endl;
return;
}
std::cout << "Getting " << cs << " connection info..." << std::endl;
// we only want the configuration section of the reflector's document

@ -312,7 +312,9 @@ void CURFProtocol::HandlePeerLinks(void)
for ( auto it=ilmap->begin(); it!=ilmap->end(); it++ )
{
const auto cs = it->first;
if ((0 == cs.substr(0, 3).compare("URF")) && (nullptr==peers->FindPeer(CCallsign(cs), EProtocol::urf)))
CCallsign callsign;
callsign.SetCallsign(cs, false);
if ((0 == cs.substr(0, 3).compare("URF")) && (nullptr==peers->FindPeer(callsign, EProtocol::urf)))
{
#ifndef NO_DHT
it->second.UpdateIP(g_Configure.GetString(g_Keys.ip.ipv6address).empty());

Loading…
Cancel
Save

Powered by TurnKey Linux.