cluster/websocket: Deprecate $listen_host, introduce $listen_addr

This only changes the script-layer API, but keeps the std::string host
in the C++ layer's ServerOptions. Mostly because the ixwebsocket library
takes host as std::string. Also, maybe at  some point we'd want to
support something scheme-based like unix:///var/run/zeek.sock and placing
that in a string could not be totally wrong.

Add tests for IPV6, too.
This commit is contained in:
Arne Welzel 2025-05-24 17:27:41 +02:00
parent 8b029d0050
commit 544d571089
39 changed files with 325 additions and 35 deletions

View file

@ -43,6 +43,7 @@ WS_PORT = (
# IPv4 non-secure WebSocker URL for version 1
WS4_URL_V1 = f"ws://127.0.0.1:{WS_PORT}/v1/messages/json"
WS6_URL_V1 = f"ws://[::1]:{WS_PORT}/v1/messages/json"
DEFAULT_RECV_TIMEOUT = 0.1
OWN_TOPIC_PREFIX = "/zeek/wstest"