Limit the regex to the end of line, so we don't get errors regarding PAM Authentication errors with hostnames that start with an ip:)

This commit is contained in:
2024-04-10 19:21:36 +02:00
parent 893eba3229
commit cbae1c859d

View File

@ -171,7 +171,7 @@ sub parser {
m/ ($re_host) /gcix && do {
$host = $1;
};
} elsif($string =~ m/Authentication error for( illegal user|) $re_user from $re_host/) {
} elsif($string =~ m/Authentication error for( illegal user|) $re_user from $re_host$/) {
$_ = $string;
$hostile = 1;
$reply = 'Authentication error';