make disable_ipv6 optional (and default to false) to not break existing chatmail.ini's unneccessarily

This commit is contained in:
holger krekel
2024-07-28 20:38:53 +02:00
parent 7a64333c25
commit fae0863633
2 changed files with 2 additions and 4 deletions

View File

@@ -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.

View File

@@ -30,9 +30,7 @@ class Config:
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")