mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 06:38:20 +00:00
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:
parent
8b029d0050
commit
544d571089
39 changed files with 325 additions and 35 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue