mirror of
https://github.com/mjl-/mox.git
synced 2025-01-14 01:06:27 +03:00
Fixed MTASTSHTTPS.NonTLS option (#29)
AutoconfigHTTPS.NonTLS option was being used. Fixed to use MTASTSHTTPS.NonTLS option.
This commit is contained in:
parent
70ab9a7d4c
commit
f6ed860ccb
1 changed files with 1 additions and 1 deletions
|
@ -396,7 +396,7 @@ func Listen() {
|
||||||
}
|
}
|
||||||
if l.MTASTSHTTPS.Enabled {
|
if l.MTASTSHTTPS.Enabled {
|
||||||
port := config.Port(l.MTASTSHTTPS.Port, 443)
|
port := config.Port(l.MTASTSHTTPS.Port, 443)
|
||||||
srv := ensureServe(!l.AutoconfigHTTPS.NonTLS, port, "mtasts-https")
|
srv := ensureServe(!l.MTASTSHTTPS.NonTLS, port, "mtasts-https")
|
||||||
mtastsMatch := func(dom dns.Domain) bool {
|
mtastsMatch := func(dom dns.Domain) bool {
|
||||||
// todo: may want to check this against the configured domains, could in theory be just a webserver.
|
// todo: may want to check this against the configured domains, could in theory be just a webserver.
|
||||||
return strings.HasPrefix(dom.ASCII, "mta-sts.")
|
return strings.HasPrefix(dom.ASCII, "mta-sts.")
|
||||||
|
|
Loading…
Reference in a new issue