mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 22:58:20 +00:00
Copy docs into Zeek repo directly
This is based on commit 2731def9159247e6da8a3191783c89683363689c from the zeek-docs repo.
This commit is contained in:
parent
83f1e74643
commit
ded98cd373
1074 changed files with 169319 additions and 0 deletions
9
doc/scripting/js/connection-service.js
Normal file
9
doc/scripting/js/connection-service.js
Normal file
|
@ -0,0 +1,9 @@
|
|||
// connection-service.js
|
||||
zeek.on('connection_state_remove', { priority: 10 }, (c) => {
|
||||
// c.service.push('service-from-js'); only modifies JavaScript array
|
||||
c.service = c.service.concat('service-from-js');
|
||||
});
|
||||
|
||||
zeek.hook('Conn::log_policy', (rec, id, filter) => {
|
||||
console.log(rec.service);
|
||||
});
|
Loading…
Add table
Add a link
Reference in a new issue