Browse Source

Fix issue where restarting a controller causes a DB write for each network member

Grant Limberg 3 years ago
parent
commit
f8e24f4629
1 changed files with 1 additions and 0 deletions
  1. 1 0
      controller/PostgreSQL.cpp

+ 1 - 0
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);