mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-01-03 11:44:09 +00:00
Fix bug in default rules init in new networks.
This commit is contained in:
parent
3f4c166861
commit
e2509af163
@ -168,10 +168,10 @@ private:
|
|||||||
if (!network.count("ipAssignmentPools")) network["ipAssignmentPools"] = nlohmann::json::array();
|
if (!network.count("ipAssignmentPools")) network["ipAssignmentPools"] = nlohmann::json::array();
|
||||||
if (!network.count("rules")) {
|
if (!network.count("rules")) {
|
||||||
// If unspecified, rules are set to allow anything and behave like a flat L2 segment
|
// If unspecified, rules are set to allow anything and behave like a flat L2 segment
|
||||||
network["rules"] = {
|
network["rules"] = {{
|
||||||
{ "not",false },
|
{ "not",false },
|
||||||
{ "type","ACTION_ACCEPT" }
|
{ "type","ACTION_ACCEPT" }
|
||||||
};
|
}};
|
||||||
}
|
}
|
||||||
network["objtype"] = "network";
|
network["objtype"] = "network";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user