summaryrefslogtreecommitdiff
path: root/controller/PostgreSQL.cpp
diff options
context:
space:
mode:
authorGrant Limberg <[email protected]>2022-02-28 12:26:32 -0800
committerGrant Limberg <[email protected]>2022-02-28 12:26:32 -0800
commitf8e24f4629f0edde11c3e03c884c19a4fb69aaad (patch)
treebdc971b21de5064663e454179dd34558f99ab960 /controller/PostgreSQL.cpp
parent1cf8a1f4933add1df99a12d77e13661f5cbcaa71 (diff)
Fix issue where restarting a controller causes a DB write for each network member
Diffstat (limited to 'controller/PostgreSQL.cpp')
-rw-r--r--controller/PostgreSQL.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/controller/PostgreSQL.cpp b/controller/PostgreSQL.cpp
index c6623d55..f83ebc9b 100644
--- a/controller/PostgreSQL.cpp
+++ b/controller/PostgreSQL.cpp
@@ -777,6 +777,7 @@ void PostgreSQL::initializeMembers()
std::string assignedAddresses = std::get<20>(row);
config["id"] = memberId;
+ config["address"] = memberId;
config["nwid"] = networkId;
config["activeBridge"] = activeBridge.value_or(false);
config["authorized"] = authorized.value_or(false);