fix: 外发优先 IPv4 + smarthost 中继 + 地址族配置(补 PR #1 合并后遗漏的提交) #3

Merged
kevin merged 3 commits from dsh/mailgo:outbound-ipv4-relay into main 2026-08-16 12:13:00 +08:00
Showing only changes of commit 76c98c94f3 - Show all commits
+1 -1
View File
@@ -327,7 +327,7 @@ func LoadConfig() (*Config, error) {
// relay_starttls defaults to true for safety; the raw file is checked
// because TOML decoding cannot distinguish an absent bool from false.
if cfg.Outbound.RelayHost != "" && !strings.Contains(string(data), "relay_starttls") {
if !strings.Contains(string(data), "relay_starttls") {
cfg.Outbound.RelayStartTLS = defaults.Outbound.RelayStartTLS
}