浏览代码

and instead of or in postgres check

Grant Limberg 1 周之前
父节点
当前提交
ce84de605d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      nonfree/controller/EmbeddedNetworkController.cpp

+ 1 - 1
nonfree/controller/EmbeddedNetworkController.cpp

@@ -651,7 +651,7 @@ void EmbeddedNetworkController::init(const Identity& signingId, Sender* sender)
 		throw std::runtime_error("controller config required");
 		throw std::runtime_error("controller config required");
 	}
 	}
 
 
-	if (_path.length() > 9 || (_path.substr(0, 9) != "postgres:")) {
+	if (_path.length() > 9 && (_path.substr(0, 9) != "postgres:")) {
 		throw std::runtime_error("central controller requires postgres db");
 		throw std::runtime_error("central controller requires postgres db");
 	}
 	}