diff options
author | Nicolas Thumann <me@n-thumann.de> | 2020-03-10 16:29:45 +0100 |
---|---|---|
committer | nthumann <me@n-thumann.de> | 2020-09-23 23:14:28 +0200 |
commit | 347c94f551c3f144c44e00373e4dd61ff6d908b7 (patch) | |
tree | 2ade02d05cba9ab9f34eefb06efe6b5a40598cda /src | |
parent | 1b313cacc99a1b372238f9036abed5491f9d28f7 (diff) | |
download | bitcoin-347c94f551c3f144c44e00373e4dd61ff6d908b7.tar.xz |
zmq: Add support to listen on multiple interfaces
Diffstat (limited to 'src')
-rw-r--r-- | src/zmq/zmqnotificationinterface.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/zmq/zmqnotificationinterface.cpp b/src/zmq/zmqnotificationinterface.cpp index a7e9a34269..a2f994d7df 100644 --- a/src/zmq/zmqnotificationinterface.cpp +++ b/src/zmq/zmqnotificationinterface.cpp @@ -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); |