mirror of
https://github.com/zeek/zeek.git
synced 2025-10-02 14:48:21 +00:00
NetControl: fix acld whitelist command
This commit is contained in:
parent
ee4abb5db2
commit
ee132b6da4
1 changed files with 2 additions and 2 deletions
|
@ -75,7 +75,7 @@ global netcontrol_acld_current_id: count = 0;
|
|||
|
||||
const acld_add_to_remove: table[string] of string = {
|
||||
["drop"] = "restore",
|
||||
["whitelist"] = "remwhitelist",
|
||||
["addwhitelist"] = "remwhitelist",
|
||||
["blockhosthost"] = "restorehosthost",
|
||||
["droptcpport"] = "restoretcpport",
|
||||
["dropudpport"] = "restoreudpport",
|
||||
|
@ -167,7 +167,7 @@ function rule_to_acl_rule(p: PluginState, r: Rule) : AclRule
|
|||
if ( r$ty == DROP )
|
||||
command = "drop";
|
||||
else if ( r$ty == WHITELIST )
|
||||
command = "whitelist";
|
||||
command = "addwhitelist";
|
||||
arg = cat(e$ip);
|
||||
}
|
||||
else if ( e$ty == FLOW )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue