mirror of
https://github.com/zeek/zeek.git
synced 2025-10-04 07:38:19 +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 = {
|
const acld_add_to_remove: table[string] of string = {
|
||||||
["drop"] = "restore",
|
["drop"] = "restore",
|
||||||
["whitelist"] = "remwhitelist",
|
["addwhitelist"] = "remwhitelist",
|
||||||
["blockhosthost"] = "restorehosthost",
|
["blockhosthost"] = "restorehosthost",
|
||||||
["droptcpport"] = "restoretcpport",
|
["droptcpport"] = "restoretcpport",
|
||||||
["dropudpport"] = "restoreudpport",
|
["dropudpport"] = "restoreudpport",
|
||||||
|
@ -167,7 +167,7 @@ function rule_to_acl_rule(p: PluginState, r: Rule) : AclRule
|
||||||
if ( r$ty == DROP )
|
if ( r$ty == DROP )
|
||||||
command = "drop";
|
command = "drop";
|
||||||
else if ( r$ty == WHITELIST )
|
else if ( r$ty == WHITELIST )
|
||||||
command = "whitelist";
|
command = "addwhitelist";
|
||||||
arg = cat(e$ip);
|
arg = cat(e$ip);
|
||||||
}
|
}
|
||||||
else if ( e$ty == FLOW )
|
else if ( e$ty == FLOW )
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue