diff options
author | Grant Limberg <grant.limberg@zerotier.com> | 2019-01-21 11:18:20 -0800 |
---|---|---|
committer | Grant Limberg <grant.limberg@zerotier.com> | 2019-01-21 11:18:20 -0800 |
commit | d98bdb5643b7de7097526a4767dbc88235e05fc9 (patch) | |
tree | 676532c23a956a9c1f76e7226a4e98374343d3ca /controller/PostgreSQL.hpp | |
parent | b59c4a2106ad17d92c15c086c31d5764a0462c16 (diff) | |
download | infinitytier-d98bdb5643b7de7097526a4767dbc88235e05fc9.tar.gz infinitytier-d98bdb5643b7de7097526a4767dbc88235e05fc9.zip |
WIP: Pass listen port down to Postgres
Diffstat (limited to 'controller/PostgreSQL.hpp')
-rw-r--r-- | controller/PostgreSQL.hpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/controller/PostgreSQL.hpp b/controller/PostgreSQL.hpp index a20bfe99..6f1daa75 100644 --- a/controller/PostgreSQL.hpp +++ b/controller/PostgreSQL.hpp @@ -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; }; } |