mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-23 01:18:58 +00:00
rulesSource needs to be required in network or pgsql has issues
This commit is contained in:
@ -52,6 +52,7 @@ void DB::initNetwork(nlohmann::json &network)
|
|||||||
if (!network.count("mtu")) network["mtu"] = ZT_DEFAULT_MTU;
|
if (!network.count("mtu")) network["mtu"] = ZT_DEFAULT_MTU;
|
||||||
if (!network.count("remoteTraceTarget")) network["remoteTraceTarget"] = nlohmann::json();
|
if (!network.count("remoteTraceTarget")) network["remoteTraceTarget"] = nlohmann::json();
|
||||||
if (!network.count("removeTraceLevel")) network["remoteTraceLevel"] = 0;
|
if (!network.count("removeTraceLevel")) network["remoteTraceLevel"] = 0;
|
||||||
|
if (!network.count("rulesSource")) network["rulesSource"] = "";
|
||||||
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"] = {{
|
||||||
|
Reference in New Issue
Block a user