From 2ca7d4ce9f5d619c6d644a9361fa12cfc95c03dd Mon Sep 17 00:00:00 2001 From: dan Date: Mon, 30 Jan 2023 12:33:23 -0800 Subject: [PATCH] range-based insertion implicitly calling string constructor --- llarp/config/config.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/llarp/config/config.cpp b/llarp/config/config.cpp index 3fabd4bc4a..fc021187bb 100644 --- a/llarp/config/config.cpp +++ b/llarp/config/config.cpp @@ -1174,7 +1174,9 @@ namespace llarp key = "tcp://" + key; auto pubkeys = split(values, ",", true); - m_rpcEncryptedAddresses[oxenmq::address{key}].insert(pubkeys.begin(), pubkeys.end()); + + for (auto& pk : pubkeys) + m_rpcEncryptedAddresses[oxenmq::address{key}].emplace(pk); }, Comment{ "Specify encrypted listener addresses and comma-delimited public keys to be accepted ",