summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <grant.limberg@zerotier.com>2019-01-21 11:18:20 -0800
committerGrant Limberg <grant.limberg@zerotier.com>2019-01-21 11:18:20 -0800
commitd98bdb5643b7de7097526a4767dbc88235e05fc9 (patch)
tree676532c23a956a9c1f76e7226a4e98374343d3ca /controller/PostgreSQL.cpp
parentb59c4a2106ad17d92c15c086c31d5764a0462c16 (diff)
downloadinfinitytier-d98bdb5643b7de7097526a4767dbc88235e05fc9.tar.gz
infinitytier-d98bdb5643b7de7097526a4767dbc88235e05fc9.zip
WIP: Pass listen port down to Postgres
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp3
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;