From fae0863633dde1be07c7d1ce73bd535a5fded1cc Mon Sep 17 00:00:00 2001 From: holger krekel Date: Sun, 28 Jul 2024 20:38:53 +0200 Subject: [PATCH] make disable_ipv6 optional (and default to false) to not break existing chatmail.ini's unneccessarily --- CHANGELOG.md | 2 +- chatmaild/src/chatmaild/config.py | 4 +--- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ec116cdc..209fb7b9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,6 @@ # Changelog for chatmail deployment -## untagged +## 1.4.0 2024-07-28 - Add `disable_ipv6` config option to chatmail.ini. Required if the server doesn't have IPv6 connectivity. diff --git a/chatmaild/src/chatmaild/config.py b/chatmaild/src/chatmaild/config.py index 696ef66c..fcdc61ad 100644 --- a/chatmaild/src/chatmaild/config.py +++ b/chatmaild/src/chatmaild/config.py @@ -30,9 +30,7 @@ def __init__(self, inipath, params): self.passthrough_recipients = params["passthrough_recipients"].split() self.filtermail_smtp_port = int(params["filtermail_smtp_port"]) self.postfix_reinject_port = int(params["postfix_reinject_port"]) - self.disable_ipv6 = ( - True if params.get("disable_ipv6").lower() == "true" else False - ) + self.disable_ipv6 = params.get("disable_ipv6", "false").lower() == "true" self.iroh_relay = params.get("iroh_relay") self.privacy_postal = params.get("privacy_postal") self.privacy_mail = params.get("privacy_mail")