Skip to content

Commit fae0863

Browse files
committed
make disable_ipv6 optional (and default to false) to not break existing chatmail.ini's unneccessarily
1 parent 7a64333 commit fae0863

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Changelog for chatmail deployment
22

3-
## untagged
3+
## 1.4.0 2024-07-28
44

55
- Add `disable_ipv6` config option to chatmail.ini.
66
Required if the server doesn't have IPv6 connectivity.

chatmaild/src/chatmaild/config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,7 @@ def __init__(self, inipath, params):
3030
self.passthrough_recipients = params["passthrough_recipients"].split()
3131
self.filtermail_smtp_port = int(params["filtermail_smtp_port"])
3232
self.postfix_reinject_port = int(params["postfix_reinject_port"])
33-
self.disable_ipv6 = (
34-
True if params.get("disable_ipv6").lower() == "true" else False
35-
)
33+
self.disable_ipv6 = params.get("disable_ipv6", "false").lower() == "true"
3634
self.iroh_relay = params.get("iroh_relay")
3735
self.privacy_postal = params.get("privacy_postal")
3836
self.privacy_mail = params.get("privacy_mail")

0 commit comments

Comments
 (0)