mirror of
https://github.com/mjl-/mox.git
synced 2025-06-28 01:48:15 +03:00
do not bind to port 443 for tls-alpn01 if there is no ACME configured
for #2
This commit is contained in:
parent
54981fbc93
commit
f2fd6241a0
@ -67,8 +67,8 @@ func ListenAndServe() {
|
||||
return s
|
||||
}
|
||||
|
||||
if l.SMTP.Enabled && !l.SMTP.NoSTARTTLS || l.Submissions.Enabled || l.IMAPS.Enabled {
|
||||
ensureServe(true, config.Port(config.Port(l.AutoconfigHTTPS.Port, 443), 443), "acme-tls-alpn01")
|
||||
if l.TLS != nil && l.TLS.ACME != "" && (l.SMTP.Enabled && !l.SMTP.NoSTARTTLS || l.Submissions.Enabled || l.IMAPS.Enabled) {
|
||||
ensureServe(true, config.Port(mox.Conf.Static.ACME[l.TLS.ACME].Port, 443), "acme-tls-alpn01")
|
||||
}
|
||||
|
||||
if l.AccountHTTP.Enabled {
|
||||
|
Loading…
x
Reference in New Issue
Block a user