瀏覽代碼

rulesSource needs to be required in network or pgsql has issues

Adam Ierymenko 6 年之前
父節點
當前提交
6a9a577c59
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      controller/DB.cpp

+ 1 - 0
controller/DB.cpp

@@ -52,6 +52,7 @@ void DB::initNetwork(nlohmann::json &network)
 	if (!network.count("mtu")) network["mtu"] = ZT_DEFAULT_MTU;
 	if (!network.count("remoteTraceTarget")) network["remoteTraceTarget"] = nlohmann::json();
 	if (!network.count("removeTraceLevel")) network["remoteTraceLevel"] = 0;
+	if (!network.count("rulesSource")) network["rulesSource"] = "";
 	if (!network.count("rules")) {
 		// If unspecified, rules are set to allow anything and behave like a flat L2 segment
 		network["rules"] = {{