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

zmena podminek pri kontrole typu polozek udalosti

parent 68bc158d
No related branches found
Tags warden-server-2.1-beta1
No related merge requests found
...@@ -228,19 +228,19 @@ sub saveNewEvent ...@@ -228,19 +228,19 @@ sub saveNewEvent
sendMsg("err", sendMsg("err",
"Unknown detected time format - client from: '$ip'; CN(AN): $alt_names; used detected: '$detected'", "Unknown detected time format - client from: '$ip'; CN(AN): $alt_names; used detected: '$detected'",
"Unknown detected time format '$detected'"); "Unknown detected time format '$detected'");
} elsif ($target_port !~ /^\d+\z/ && defined $target_port) { } elsif ($target_port !~ /^\d+\z/ || !defined $target_port) {
sendMsg("err", sendMsg("err",
"Unknown target port - client from: '$ip'; CN(AN): $alt_names; used target_port: '$target_port'", "Unknown target port - client from: '$ip'; CN(AN): $alt_names; used target_port: '$target_port'",
"Unknown target port '$target_port'"); "Unknown target port '$target_port'");
} elsif ($attack_scale !~ /^\d+\z/ && defined $attack_scale) { } elsif ($attack_scale !~ /^\d+\z/ || !defined $attack_scale) {
sendMsg("err", sendMsg("err",
"Unknown attack scale - client from: '$ip'; CN(AN): $alt_names; used attack_scale: '$attack_scale'", "Unknown attack scale - client from: '$ip'; CN(AN): $alt_names; used attack_scale: '$attack_scale'",
"Unknown attack scale '$attack_scale'"); "Unknown attack scale '$attack_scale'");
} elsif ($priority !~ /^\d+\z/ && defined $priority) { } elsif ($priority !~ /^\d+\z/ || !defined $priority) {
sendMsg("err", sendMsg("err",
"Unknown priority - client from: '$ip'; CN(AN): $alt_names; used priority: '$priority'", "Unknown priority - client from: '$ip'; CN(AN): $alt_names; used priority: '$priority'",
"Unknown priority '$priority'"); "Unknown priority '$priority'");
} elsif ($timeout !~ /^\d+\z/ && defined $timeout) { } elsif ($timeout !~ /^\d+\z/ || !defined $timeout) {
sendMsg("err", sendMsg("err",
"Unknown timeout - client from: '$ip'; CN(AN): $alt_names; used timeout: '$timeout'", "Unknown timeout - client from: '$ip'; CN(AN): $alt_names; used timeout: '$timeout'",
"Unknown timeout '$timeout'"); "Unknown timeout '$timeout'");
......
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