mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00

ZeroMQ's IPv6 support isn't enabled by default, resulting in "No such device" errors when attempting to listen on an IPv6 address. This change adds a ipv6 option to the ZeroMQ module and enables it by default. Further, adds a test configuring everything to listen on IPv6 ::1 as well, and one test to provoke the original error. This also regularizes some error messages. The addr_to_uri() calls weren't actually needed, but they apparently do not hurt and the result is easier on the eyes, so use them :-)
17 lines
640 B
Text
17 lines
640 B
Text
redef Cluster::manager_is_logger = F;
|
|
|
|
const node_ip = 127.0.0.1 &redef;
|
|
|
|
# If ZEEK_CLUSTER_IP is set, populate the cluster-layout's Node$ip fields with it.
|
|
const cluster_ip_env = getenv("BTEST_CLUSTER_IP");
|
|
@if ( cluster_ip_env != "" )
|
|
redef node_ip = to_addr(cluster_ip_env);
|
|
@endif
|
|
|
|
redef Cluster::nodes = {
|
|
["manager"] = [$node_type=Cluster::MANAGER, $ip=node_ip],
|
|
["logger"] = [$node_type=Cluster::LOGGER, $ip=node_ip, $p=to_port(getenv("LOG_PULL_PORT"))],
|
|
["proxy"] = [$node_type=Cluster::PROXY, $ip=node_ip],
|
|
["worker-1"] = [$node_type=Cluster::WORKER, $ip=node_ip],
|
|
["worker-2"] = [$node_type=Cluster::WORKER, $ip=node_ip],
|
|
};
|