mirror of https://github.com/fail2ban/fail2ban
highlighting ini-blocks
parent
a4e8fbada4
commit
dea9bc0ec2
|
@ -9,7 +9,7 @@ Our implementation is more complex (allows includes, recursive interlaced substi
|
|||
This case `cftoken = %(cftoken)s` is not allowed, because it will produce endless cycle (always substitute itself, again and again).
|
||||
|
||||
As well as following is not allowed also (for the same reason):
|
||||
```
|
||||
```ini
|
||||
A = %(B)s
|
||||
B = %(C)s
|
||||
C = %(A)s
|
||||
|
@ -19,14 +19,14 @@ Since we support an extensions called "known" with syntax `%(known/option)s`, af
|
|||
So try your luck with `cftoken = %(known/cftoken)s`
|
||||
|
||||
If you will set resp. deliver some init parameter from jail to filter or action, you can currently use another interpolation extension of us with another syntax `<option>` (Note: this is a run-time substitution):
|
||||
```
|
||||
```ini
|
||||
# action my-action.conf
|
||||
[Definition]
|
||||
cftoken = <cftoken>
|
||||
[Init]
|
||||
cftoken = default value
|
||||
```
|
||||
```
|
||||
```ini
|
||||
# jail.local
|
||||
[my-jail]
|
||||
banaction = my-action[cftoken="customized value"]
|
Loading…
Reference in New Issue