mirror of
https://github.com/mjl-/mox.git
synced 2024-12-26 00:13:47 +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
1 changed files with 2 additions and 2 deletions
|
@ -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…
Reference in a new issue