allow multiple datagram monitor endpoints (#408)

This commit is contained in:
RichardAH
2024-12-14 08:44:40 +10:00
committed by GitHub
parent 532a471a35
commit d878fd4a6e
4 changed files with 21 additions and 10 deletions

View File

@@ -510,11 +510,10 @@ Config::loadFromString(std::string const& fileContents)
NETWORK_ID = beast::lexicalCastThrow<uint32_t>(strTemp);
}
if (getSingleSection(secConfig, SECTION_DATAGRAM_MONITOR, strTemp, j_))
if (auto s = getIniFileSection(secConfig, SECTION_DATAGRAM_MONITOR))
{
std::vector<std::string> vecTemp{strTemp};
replaceColons(vecTemp);
DATAGRAM_MONITOR = vecTemp[0];
DATAGRAM_MONITOR = *s;
replaceColons(DATAGRAM_MONITOR);
}
if (getSingleSection(secConfig, SECTION_PEER_PRIVATE, strTemp, j_))