Skip to content
Snippets Groups Projects
Commit ed167c5a authored by Tomáš Plesník's avatar Tomáš Plesník
Browse files

pridano logovani prichozi zpravy

parent eb48b454
No related branches found
No related tags found
No related merge requests found
......@@ -221,6 +221,9 @@ sub saveNewEvent
my %client = authorizeClient($alt_names, $ip, $service, $client_type, $function_name);
if (defined %client) {
sendMsg("debug",
"Incoming event: [service: '$service', detected: '$detected', type: '$type', source_type: '$source_type', source: '$source', target_proto: '$target_proto', target_port: '$target_port', attack_scale: '$attack_scale', note: '$note', priority: '$priority', timeout: '$timeout']",
undef);
if (%VALID_STRINGS) { # check if hash is not empty - use VALIDATION HASH
if (!(exists $VALID_STRINGS{'type'} && grep $type eq $_, @{$VALID_STRINGS{'type'}})) {
sendMsg("err",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment