-
Is it possible to use less than (<) and greater than (>) symbols in an action.conf? I’m trying to setup a Discord notification system posting to webhooks (Discord API). In order for URLs to not show previews on Discord, they have to be wrapped in <>. Which, I assume is strictly for use by fail2ban as variable usage. Is there a way to escape the <>? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Yes it is... Only available tags Line 350 in 8eac5f5 If you use < and > alone (e. g. separated by spaces from rest of the command, they will be ignored).
Yes, one could add something like that in definition or default section: [DEFAULT]
lt = <
gt = > And then use - cmd <file-in>file-out
+ cmd <file-in >file-out |
Beta Was this translation helpful? Give feedback.
Yes it is... Only available tags
<token>
, wheretoken
normally contains alphanumeric, underscore and minus characters, will be replaced recursively (so<primary-<secondary>>
form too. Regex for tokens looks likefail2ban/fail2ban/helpers.py
Line 350 in 8eac5f5
If you use
<
and>
alone (e. g. separated by spaces from rest of the command, they will be ignored).Yes, one could add something like that in definition or default section:
And then use
<lt>
or%(lt)s
for<
char and<gt>
or%(gt)s
for>