mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-23 09:25:32 +00:00
.
This commit is contained in:
@ -1364,7 +1364,7 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST(
|
|||||||
if (ipp.is_array()) {
|
if (ipp.is_array()) {
|
||||||
json nipp = json::array();
|
json nipp = json::array();
|
||||||
for(unsigned long i=0;i<ipp.size();++i) {
|
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"))) {
|
if ((ip.is_object())&&(ip.count("ipRangeStart"))&&(ip.count("ipRangeEnd"))) {
|
||||||
InetAddress f(_jS(ip["ipRangeStart"],""));
|
InetAddress f(_jS(ip["ipRangeStart"],""));
|
||||||
InetAddress t(_jS(ip["ipRangeEnd"],""));
|
InetAddress t(_jS(ip["ipRangeEnd"],""));
|
||||||
@ -1432,7 +1432,7 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST(
|
|||||||
json nrules = json::array();
|
json nrules = json::array();
|
||||||
if (rules.is_array()) {
|
if (rules.is_array()) {
|
||||||
for(unsigned long i=0;i<rules.size();++i) {
|
for(unsigned long i=0;i<rules.size();++i) {
|
||||||
json rule = rules[i];
|
json &rule = rules[i];
|
||||||
if (rule.is_object()) {
|
if (rule.is_object()) {
|
||||||
ZT_VirtualNetworkRule ztr;
|
ZT_VirtualNetworkRule ztr;
|
||||||
if (_parseRule(rule,ztr))
|
if (_parseRule(rule,ztr))
|
||||||
|
Reference in New Issue
Block a user