summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2023-10-01 10:41:08 +0200
committerErich Eckner <git@eckner.net>2023-10-01 10:41:08 +0200
commitc93406c943a30593997ce5305f8464b964a71769 (patch)
tree0f2b1b78398283628ae58b7cdf036486a1f97684
parentbe4038b131f819232d7bc345931322814a7403bf (diff)
downloadlogwatch-overrides-c93406c943a30593997ce5305f8464b964a71769.tar.xz
sshd: treat network errors with port like network errors
-rw-r--r--sshd2
1 files changed, 1 insertions, 1 deletions
diff --git a/sshd b/sshd
index eb8558e..d177bc8 100644
--- a/sshd
+++ b/sshd
@@ -249,7 +249,7 @@ while (defined(my $ThisLine = <STDIN>)) {
($ThisLine =~ m/^(?:error:.*|fatal:) Connection closed by remote host/ ) or
($ThisLine =~ m/^(|fatal: )Read error from remote host(| [^ ]+): Connection reset by peer/ ) or
($ThisLine =~ m/^error: .*: read: Connection reset by peer/ ) or
- ($ThisLine =~ m/^Read error from remote host [^ ]+: (Connection timed out|No route to host)/ ) or
+ ($ThisLine =~ m/^Read error from remote host [^ ]+( port \d+)?: (Connection timed out|No route to host)/ ) or
($ThisLine =~ m/^fatal: Read from socket failed: No route to host/) or
($ThisLine =~ m/^fatal: Write failed: Network is unreachable/ ) or
($ThisLine =~ m/^fatal: Write failed: Broken pipe/) or