Loading src/authdb.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -845,8 +845,17 @@ int main(int argc,char *argv[]){ if (clusterEnable && config.getValue(clusterEnable, 0) == "true") clusterEnabled = true; } std::string cert=config.getValue(config.getKey("/AUTHDB/SSL/CERT"),0); std::string key=config.getValue(config.getKey("/AUTHDB/SSL/KEY"),0); std::string cert; std::string key; if (auto *certKey = config.getKey("/AUTHDB/SSL/CERT")) cert = config.getValue(certKey, 0); if (auto *keyKey = config.getKey("/AUTHDB/SSL/KEY")) key = config.getValue(keyKey, 0); if (clusterEnabled && (cert.empty() || key.empty())) { std::cerr << "Cluster mode requires /AUTHDB/SSL/CERT and /AUTHDB/SSL/KEY" << std::endl; return 1; } /* Cluster config — parsed early, started after priv drop */ authdb::Cluster cluster; Loading Loading
src/authdb.cpp +11 −2 Original line number Diff line number Diff line Loading @@ -845,8 +845,17 @@ int main(int argc,char *argv[]){ if (clusterEnable && config.getValue(clusterEnable, 0) == "true") clusterEnabled = true; } std::string cert=config.getValue(config.getKey("/AUTHDB/SSL/CERT"),0); std::string key=config.getValue(config.getKey("/AUTHDB/SSL/KEY"),0); std::string cert; std::string key; if (auto *certKey = config.getKey("/AUTHDB/SSL/CERT")) cert = config.getValue(certKey, 0); if (auto *keyKey = config.getKey("/AUTHDB/SSL/KEY")) key = config.getValue(keyKey, 0); if (clusterEnabled && (cert.empty() || key.empty())) { std::cerr << "Cluster mode requires /AUTHDB/SSL/CERT and /AUTHDB/SSL/KEY" << std::endl; return 1; } /* Cluster config — parsed early, started after priv drop */ authdb::Cluster cluster; Loading