Simplify Dictionary and reduce memory usage, now no more std::maps in core.
This commit is contained in:
parent
76a95dc58f
commit
5384f185ae
4 changed files with 99 additions and 73 deletions
|
@ -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));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue