mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2026-01-04 16:21:34 -08:00
let's try this
This commit is contained in:
parent
3f19712178
commit
5494c44a30
2 changed files with 2 additions and 4 deletions
|
|
@ -612,11 +612,11 @@ void EmbeddedNetworkController::init(const Identity& signingId, Sender* sender)
|
|||
#ifdef ZT_CONTROLLER_USE_LIBPQ
|
||||
if ((_path.length() > 9) && (_path.substr(0, 9) == "postgres:")) {
|
||||
fprintf(stderr, "CV1\n");
|
||||
_db.addDB(std::shared_ptr<DB>(new CV1(_signingId, _path.substr(9).c_str(), _listenPort, _rc)));
|
||||
_db.addDB(std::shared_ptr<CV1>(new CV1(_signingId, _path.substr(9).c_str(), _listenPort, _rc)));
|
||||
}
|
||||
else if ((_path.length() > 4) && (_path.substr(0, 4) == "cv2:")) {
|
||||
fprintf(stderr, "CV2\n");
|
||||
_db.addDB(std::shared_ptr<DB>(new CV2(_signingId, _path.substr(4).c_str(), _listenPort)));
|
||||
_db.addDB(std::shared_ptr<CV2>(new CV2(_signingId, _path.substr(4).c_str(), _listenPort)));
|
||||
}
|
||||
else {
|
||||
fprintf(stderr, "FileDB\n");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue