Skip to content

Commit 347c94f

Browse files
committed
zmq: Add support to listen on multiple interfaces
1 parent 1b313ca commit 347c94f

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/zmq/zmqnotificationinterface.cpp

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,8 @@ CZMQNotificationInterface* CZMQNotificationInterface::Create()
4242
for (const auto& entry : factories)
4343
{
4444
std::string arg("-zmq" + entry.first);
45-
if (gArgs.IsArgSet(arg))
46-
{
47-
const auto& factory = entry.second;
48-
const std::string address = gArgs.GetArg(arg, "");
45+
const auto& factory = entry.second;
46+
for (const std::string& address : gArgs.GetArgs(arg)) {
4947
std::unique_ptr<CZMQAbstractNotifier> notifier = factory();
5048
notifier->SetType(entry.first);
5149
notifier->SetAddress(address);

0 commit comments

Comments
 (0)