Skip to content

Commit

Permalink
range-based insertion implicitly calling string constructor
Browse files Browse the repository at this point in the history
  • Loading branch information
dr7ana committed Jan 30, 2023
1 parent d4b47db commit 2ca7d4c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion llarp/config/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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 ",
Expand Down

0 comments on commit 2ca7d4c

Please sign in to comment.