mirror of
https://github.com/bitcoin/bitcoin.git
synced 2024-11-19 18:09:47 +01:00
zmq: Add support to listen on multiple interfaces
This commit is contained in:
parent
1b313cacc9
commit
347c94f551
@ -42,10 +42,8 @@ CZMQNotificationInterface* CZMQNotificationInterface::Create()
|
||||
for (const auto& entry : factories)
|
||||
{
|
||||
std::string arg("-zmq" + entry.first);
|
||||
if (gArgs.IsArgSet(arg))
|
||||
{
|
||||
const auto& factory = entry.second;
|
||||
const std::string address = gArgs.GetArg(arg, "");
|
||||
const auto& factory = entry.second;
|
||||
for (const std::string& address : gArgs.GetArgs(arg)) {
|
||||
std::unique_ptr<CZMQAbstractNotifier> notifier = factory();
|
||||
notifier->SetType(entry.first);
|
||||
notifier->SetAddress(address);
|
||||
|
Loading…
Reference in New Issue
Block a user