Skip to content

Commit d0b2f02

Browse files
authored
Merge pull request #10 from binsentsu/dev
Gotify: Use bantime action variable iso time
2 parents 803a3c2 + c74a09b commit d0b2f02

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

action.d/gotify.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Version 2022/08/10
1+
## Version 2022/12/18
22
# Fail2Ban configuration file
33
#
44
# Author: Quietsy
@@ -37,7 +37,7 @@ actioncheck =
3737
# Values: CMD
3838
#
3939
actionban = curl -X POST -H Content-Type:application/json <url> \
40-
--data '{"message": "⛔ <name> ⛔\n\n<ip> got banned for <time> seconds after <failures> tries.\n\nUnban command:\nfail2ban-client unban <ip>"}'
40+
--data '{"message": "⛔ <name> ⛔\n\n<ip> got banned for <bantime> seconds after <failures> tries.\n\nUnban command:\nfail2ban-client unban <ip>"}'
4141

4242
# Option: actionunban
4343
# Notes.: command executed when unbanning an IP. Take care that the

0 commit comments

Comments
 (0)