From ff23d3051ff3bfe540bce3c4a117fd27b9dc6c07 Mon Sep 17 00:00:00 2001 From: Grant Limberg Date: Wed, 23 Sep 2020 12:16:10 -0700 Subject: [PATCH] self hosted controller JSON format fix for DNS --- controller/EmbeddedNetworkController.cpp | 30 ++++++++++-------------- 1 file changed, 13 insertions(+), 17 deletions(-) diff --git a/controller/EmbeddedNetworkController.cpp b/controller/EmbeddedNetworkController.cpp index 3fb39aa3a..1ab48f41b 100644 --- a/controller/EmbeddedNetworkController.cpp +++ b/controller/EmbeddedNetworkController.cpp @@ -1031,25 +1031,21 @@ unsigned int EmbeddedNetworkController::handleControlPlaneHttpPOST( if (b.count("dns")) { json &dns = b["dns"]; - if (dns.is_array()) { - json nda = json::array(); - for(unsigned int i=0;i