diff options
author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-09 13:26:14 -0800 |
---|---|---|
committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-11-09 13:26:14 -0800 |
commit | eea712a1ae80994c32f250537ce14e52071312fb (patch) | |
tree | ed3a538e3b45f18060a90cbf43a9958af8839a11 | |
parent | 1ebfca666d19dbc7def22c4a0f4e8071a3977357 (diff) | |
download | infinitytier-eea712a1ae80994c32f250537ce14e52071312fb.tar.gz infinitytier-eea712a1ae80994c32f250537ce14e52071312fb.zip |
Field in wrong place fixed.
-rw-r--r-- | controller/EmbeddedNetworkController.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/controller/EmbeddedNetworkController.hpp b/controller/EmbeddedNetworkController.hpp index 2a66c530..53d3be0f 100644 --- a/controller/EmbeddedNetworkController.hpp +++ b/controller/EmbeddedNetworkController.hpp @@ -115,7 +115,6 @@ private: if (!member.count("creationTime")) member["creationTime"] = OSUtils::now(); if (!member.count("noAutoAssignIps")) member["noAutoAssignIps"] = false; if (!member.count("revision")) member["revision"] = 0ULL; - if (!member.count("enableBroadcast")) member["enableBroadcast"] = true; member["objtype"] = "member"; } inline void _initNetwork(nlohmann::json &network) @@ -124,6 +123,7 @@ private: if (!network.count("creationTime")) network["creationTime"] = OSUtils::now(); if (!network.count("name")) network["name"] = ""; if (!network.count("multicastLimit")) network["multicastLimit"] = (uint64_t)32; + if (!network.count("enableBroadcast")) network["enableBroadcast"] = true; if (!network.count("v4AssignMode")) network["v4AssignMode"] = {{"zt",false}}; if (!network.count("v6AssignMode")) network["v6AssignMode"] = {{"rfc4193",false},{"zt",false},{"6plane",false}}; if (!network.count("authTokens")) network["authTokens"] = nlohmann::json::array(); |