A bit of code cleanup.

This commit is contained in:
Adam Ierymenko 2017-02-04 00:23:31 -08:00
parent d9e4ba1280
commit 31db768e4d
7 changed files with 23 additions and 63 deletions

View file

@ -926,7 +926,7 @@ public:
for(json::iterator v(virt.begin());v!=virt.end();++v) {
const std::string nstr = v.key();
if ((nstr.length() == ZT_ADDRESS_LENGTH_HEX)&&(v.value().is_object())) {
const Address ztaddr(nstr.c_str());
const Address ztaddr(Utils::hexStrToU64(nstr.c_str()));
if (ztaddr) {
const uint64_t ztaddr2 = ztaddr.toInt();
std::vector<InetAddress> &v4h = _v4Hints[ztaddr2];