summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerg G. Brester <github@sebres.de>2017-08-09 16:21:47 +0200
committerGitHub <noreply@github.com>2017-08-09 16:21:47 +0200
commitda7072d40ebbf2405d43fb97a33d76e7a46bdfa1 (patch)
tree46478089532f8fe04557e06cb87c004e34fa584f
parentaf25a9d2031a81b05ab2bbf39d70a893e4224bc3 (diff)
parentf4551d02c95f942ee22fd778854e79f8a83db8ae (diff)
downloadfail2ban-da7072d40ebbf2405d43fb97a33d76e7a46bdfa1.tar.gz
Merge pull request #1846 from Chocobozzz/patch-3
Fix empty logfile.log in xarf login attack action
-rw-r--r--config/action.d/xarf-login-attack.conf4
1 files changed, 2 insertions, 2 deletions
diff --git a/config/action.d/xarf-login-attack.conf b/config/action.d/xarf-login-attack.conf
index 3ab73817..a6cac018 100644
--- a/config/action.d/xarf-login-attack.conf
+++ b/config/action.d/xarf-login-attack.conf
@@ -48,9 +48,9 @@ actionban = oifs=${IFS}; IFS=.;SEP_IP=( <ip> ); set -- ${SEP_IP}; ADDRESSES=$(di
PORT=<port>
DATE=`LC_ALL=C date --date=@<time> +"%%a, %%d %%h %%Y %%T %%z"`
if [ ! -z "$ADDRESSES" ]; then
- (printf -- %%b "<header>\n<message>\n<report>\n";
+ (printf -- %%b "<header>\n<message>\n<report>\n\n";
date '+Note: Local timezone is %%z (%%Z)';
- printf -- %%b "<ipmatches>\n\n<footer>") | <mailcmd> <mailargs> ${ADDRESSES//,/\" \"}
+ printf -- %%b "\n<ipmatches>\n\n<footer>") | <mailcmd> <mailargs> ${ADDRESSES//,/\" \"}
fi
actionunban =