fix: relay_starttls 默认值始终为 true(未显式配置时),避免中继密码明文传输
This commit is contained in:
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user