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).
|
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):
|
As well as following is not allowed also (for the same reason):
|
||||||
```
|
```ini
|
||||||
A = %(B)s
|
A = %(B)s
|
||||||
B = %(C)s
|
B = %(C)s
|
||||||
C = %(A)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`
|
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):
|
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
|
# action my-action.conf
|
||||||
[Definition]
|
[Definition]
|
||||||
cftoken = <cftoken>
|
cftoken = <cftoken>
|
||||||
[Init]
|
[Init]
|
||||||
cftoken = default value
|
cftoken = default value
|
||||||
```
|
```
|
||||||
```
|
```ini
|
||||||
# jail.local
|
# jail.local
|
||||||
[my-jail]
|
[my-jail]
|
||||||
banaction = my-action[cftoken="customized value"]
|
banaction = my-action[cftoken="customized value"]
|
Loading…
Reference in New Issue