浏览代码

Fix bug in default rules init in new networks.

Adam Ierymenko 8 年之前
父节点
当前提交
e2509af163
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controller/EmbeddedNetworkController.hpp

+ 2 - 2
controller/EmbeddedNetworkController.hpp

@@ -168,10 +168,10 @@ private:
 		if (!network.count("ipAssignmentPools")) network["ipAssignmentPools"] = nlohmann::json::array();
 		if (!network.count("rules")) {
 			// If unspecified, rules are set to allow anything and behave like a flat L2 segment
-			network["rules"] = {
+			network["rules"] = {{
 				{ "not",false },
 				{ "type","ACTION_ACCEPT" }
-			};
+			}};
 		}
 		network["objtype"] = "network";
 	}