Page MenuHomePhabricator

zmq: Add support to listen on multiple interfaces

Authored by PiRK on Thu, Oct 14, 06:24.


Group Reviewers
Restricted Project

This PR adds support for ZeroMQ to listen on multiple interfaces, just like the RPC server.
Currently, if you specify more than one e.g. zmqpubhashblock paramter, only the first one will be used. Therefore a user may be forced to listen on all interfaces (e.g. zmqpubhashblock=, which can result in an increased attack surface.
With this PR a user can specify multiple interfaces to listen on, e.g.
-zmqpubhashblock=tcp:// -zmqpubhashblock=tcp://

This is a backport of core#18309 [1/5]

Test Plan

ninja all check-all