diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-04 16:14:58 -0700 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-04 16:14:58 -0700 |
commit | 08ff666e999376a903b7e7fdc0ba47de2a929bcd (patch) | |
tree | 4b7f8158f7c9f81d53fb06138f4091474f2cbcae /controller | |
parent | 0d108d37f64b7fe6d7f42632b67cab6e1a200ba5 (diff) | |
download | infinitytier-08ff666e999376a903b7e7fdc0ba47de2a929bcd.tar.gz infinitytier-08ff666e999376a903b7e7fdc0ba47de2a929bcd.zip |
.
Diffstat (limited to 'controller')
-rw-r--r-- | controller/EmbeddedNetworkController.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index 8f86cc46..3533213e 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -1364,7 +1364,7 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST( if (ipp.is_array()) { json nipp = json::array(); for(unsigned long i=0;i<ipp.size();++i) { - auto ip = ipp[i]; + json &ip = ipp[i]; if ((ip.is_object())&&(ip.count("ipRangeStart"))&&(ip.count("ipRangeEnd"))) { InetAddress f(_jS(ip["ipRangeStart"],"")); InetAddress t(_jS(ip["ipRangeEnd"],"")); @@ -1432,7 +1432,7 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST( json nrules = json::array(); if (rules.is_array()) { for(unsigned long i=0;i<rules.size();++i) { - json rule = rules[i]; + json &rule = rules[i]; if (rule.is_object()) { ZT_VirtualNetworkRule ztr; if (_parseRule(rule,ztr)) |