summaryrefslogtreecommitdiff
path: root/service
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-04 00:23:31 -0800
committerAdam Ierymenko <adam.ierymenko@gmail.com>2017-02-04 00:23:31 -0800
commit31db768e4d4c2815d2be0493b2c76ea5f5edbffa (patch)
treeae76b2153c5a6d58dd4b887c54626ee9e93b6601 /service
parentd9e4ba1280bc5aec5d4cc04c4c495ac9c923563d (diff)
downloadinfinitytier-31db768e4d4c2815d2be0493b2c76ea5f5edbffa.tar.gz
infinitytier-31db768e4d4c2815d2be0493b2c76ea5f5edbffa.zip
A bit of code cleanup.
Diffstat (limited to 'service')
-rw-r--r--service/OneService.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/service/OneService.cpp b/service/OneService.cpp
index 49c5f4a0..9a1503e5 100644
--- a/service/OneService.cpp
+++ b/service/OneService.cpp
@@ -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];