WIP: Pass listen port down to Postgres

This commit is contained in:
Grant Limberg 2019-01-21 11:18:20 -08:00
parent b59c4a2106
commit d98bdb5643
5 changed files with 11 additions and 6 deletions

View file

@ -41,7 +41,7 @@ namespace ZeroTier
class PostgreSQL : public DB
{
public:
PostgreSQL(EmbeddedNetworkController *const nc, const Identity &myId, const char *path);
PostgreSQL(EmbeddedNetworkController *const nc, const Identity &myId, const char *path, int listenPort);
virtual ~PostgreSQL();
virtual bool waitForReady();
@ -90,6 +90,8 @@ private:
mutable std::mutex _readyLock;
std::atomic<int> _ready, _connected, _run;
mutable volatile bool _waitNoticePrinted;
int _listenPort;
};
}