소스 검색

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");
 	}
 
-	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");
 	}