Fix update_jail_config to ignore backend field
This commit is contained in:
@@ -351,8 +351,8 @@ async def update_jail_config(
|
|||||||
await _set("datepattern", update.date_pattern)
|
await _set("datepattern", update.date_pattern)
|
||||||
if update.dns_mode is not None:
|
if update.dns_mode is not None:
|
||||||
await _set("usedns", update.dns_mode)
|
await _set("usedns", update.dns_mode)
|
||||||
if update.backend is not None:
|
# backend is managed by fail2ban and cannot be changed at runtime by API.
|
||||||
await _set("backend", update.backend)
|
# This field is therefore ignored during updates.
|
||||||
if update.log_encoding is not None:
|
if update.log_encoding is not None:
|
||||||
await _set("logencoding", update.log_encoding)
|
await _set("logencoding", update.log_encoding)
|
||||||
if update.prefregex is not None:
|
if update.prefregex is not None:
|
||||||
|
|||||||
Reference in New Issue
Block a user