aboutsummaryrefslogtreecommitdiff
path: root/security/sshit/files/patch-sshit.diff
diff options
context:
space:
mode:
Diffstat (limited to 'security/sshit/files/patch-sshit.diff')
-rw-r--r--security/sshit/files/patch-sshit.diff6
1 files changed, 3 insertions, 3 deletions
diff --git a/security/sshit/files/patch-sshit.diff b/security/sshit/files/patch-sshit.diff
index 9cdce15bccd6..9d2103cea34e 100644
--- a/security/sshit/files/patch-sshit.diff
+++ b/security/sshit/files/patch-sshit.diff
@@ -1,11 +1,11 @@
---- sshit.orig Sun Jul 1 22:13:45 2007
-+++ sshit Sun Jul 1 22:14:46 2007
+--- sshit.orig Sun Aug 5 10:56:39 2007
++++ sshit Sun Aug 5 10:59:03 2007
@@ -317,7 +317,7 @@
while (<>) {
chomp;
- if (/(failed|Invalid user) .*from (\d+\.\d+\.\d+\.\d+|[\da-fA-F:]+)/i ) { # IPv4 & IPv6
-+ if (/(failed|error|Invalid user) .*from (\d+\.\d+\.\d+\.\d+|[\da-fA-F:]+)/i ) { # IPv4 & IPv6
++ if (/(failed|error|Invalid user) .*from (\d+\.\d+\.\d+\.\d+|([a-z-]+\.)+[a-z]{2,4}|[\da-fA-F:]+)/i ) { # IPv4 & IPv6
$ip = $2;
if ($list{$ip}{name}) {
if ($list{$ip}{n} >= $MAX_COUNT) {