summaryrefslogtreecommitdiff
path: root/node/Topology.cpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-01 18:12:16 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2015-10-01 18:12:16 -0700
commit5384f185ae761a0efd46090a5824178f5dcd74bc (patch)
treecbb8684271c004d6d206910afeb29bbd401d4e45 /node/Topology.cpp
parent76a95dc58fdc35037c69d915ea9fe13522edf502 (diff)
downloadinfinitytier-5384f185ae761a0efd46090a5824178f5dcd74bc.tar.gz
infinitytier-5384f185ae761a0efd46090a5824178f5dcd74bc.zip
Simplify Dictionary and reduce memory usage, now no more std::maps in core.
Diffstat (limited to 'node/Topology.cpp')
-rw-r--r--node/Topology.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/node/Topology.cpp b/node/Topology.cpp
index 65abfc6f..908acbc8 100644
--- a/node/Topology.cpp
+++ b/node/Topology.cpp
@@ -140,7 +140,7 @@ void Topology::setRootServers(const Dictionary &sn)
if ((d->first.length() == ZT_ADDRESS_LENGTH_HEX)&&(d->second.length() > 0)) {
try {
Dictionary snspec(d->second);
- std::vector<InetAddress> &a = m[Identity(snspec.get("id"))];
+ std::vector<InetAddress> &a = m[Identity(snspec.get("id",""))];
std::string udp(snspec.get("udp",std::string()));
if (udp.length() > 0)
a.push_back(InetAddress(udp));