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.cpp | |
parent | b59c4a2106ad17d92c15c086c31d5764a0462c16 (diff) | |
download | infinitytier-d98bdb5643b7de7097526a4767dbc88235e05fc9.tar.gz infinitytier-d98bdb5643b7de7097526a4767dbc88235e05fc9.zip |
WIP: Pass listen port down to Postgres
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r-- | controller/PostgreSQL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp index db0537ec..6d284d42 100644 --- a/controller/PostgreSQL.cpp +++ b/controller/PostgreSQL.cpp @@ -64,12 +64,13 @@ std::string join(const std::vector<std::string> &elements, const char * const se using namespace ZeroTier; -PostgreSQL::PostgreSQL(EmbeddedNetworkController *const nc, const Identity &myId, const char *path) +PostgreSQL::PostgreSQL(EmbeddedNetworkController *const nc, const Identity &myId, const char *path, int listenPort) : DB(nc, myId, path) , _ready(0) , _connected(1) , _run(1) , _waitNoticePrinted(false) + , _listenPort(listenPort) { _connString = std::string(path) + " application_name=controller_" +_myAddressStr; |