fix notification within quarantine
This commit is contained in:
@@ -414,12 +414,12 @@ class Quarantine:
|
|||||||
self.smtp_port = cfg["options"]["smtp_port"]
|
self.smtp_port = cfg["options"]["smtp_port"]
|
||||||
|
|
||||||
self._notification = None
|
self._notification = None
|
||||||
if "notify" in cfg["options"]:
|
if "notification" in cfg["options"]:
|
||||||
name = cfg["options"]["notify"]["name"]
|
#name = cfg["options"]["notification"]["name"]
|
||||||
cfg["options"]["notify"]["name"] = f"{cfg['name']}: {name}"
|
#cfg["options"]["notify"]["name"] = f"{cfg['name']}: {name}"
|
||||||
cfg["options"]["notify"]["loglevel"] = cfg["loglevel"]
|
#cfg["options"]["notify"]["loglevel"] = cfg["loglevel"]
|
||||||
self._notification = Notify(
|
self._notification = Notify(
|
||||||
cfg["options"]["notify"], local_addrs, debug)
|
cfg, local_addrs, debug)
|
||||||
|
|
||||||
self._allowlist = None
|
self._allowlist = None
|
||||||
if "allowlist" in cfg["options"]:
|
if "allowlist" in cfg["options"]:
|
||||||
|
|||||||
Reference in New Issue
Block a user