mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
Apply suggestions from code review
Co-authored-by: Jon Siwek <jsiwek@corelight.com>
This commit is contained in:
parent
e78386d6e5
commit
cd330c801d
2 changed files with 3 additions and 2 deletions
|
@ -162,7 +162,8 @@ export {
|
|||
## can specify a particular :rfc:`4007` ``zone_id``.
|
||||
zone_id: string &default="";
|
||||
## The port that this node will listen on for peer connections.
|
||||
p: port &optional;
|
||||
## A value of ``0/unknown`` means the node is not pre-configured to listen.
|
||||
p: port &default=0/unknown;
|
||||
## Identifier for the interface a worker is sniffing.
|
||||
interface: string &optional;
|
||||
## Name of the manager node this node uses. For workers and proxies.
|
||||
|
|
|
@ -89,7 +89,7 @@ event zeek_init() &priority=-10
|
|||
Broker::subscribe(nodeid_topic(Broker::node_id()));
|
||||
Broker::subscribe(node_topic(node));
|
||||
|
||||
if ( self?$p )
|
||||
if ( self$p != 0/unknown )
|
||||
{
|
||||
Broker::listen(Broker::default_listen_address,
|
||||
self$p,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue