mirror of
https://github.com/Mailu/Mailu.git
synced 2025-05-31 23:10:01 +02:00
doh
This commit is contained in:
parent
4c5c6c3b5f
commit
1e07b85fa1
@ -58,7 +58,7 @@ def has_dane_record(domain, timeout=10):
|
|||||||
# we will receive this non-specific exception. The safe behaviour is to
|
# we will receive this non-specific exception. The safe behaviour is to
|
||||||
# accept to defer the email.
|
# accept to defer the email.
|
||||||
flask.current_app.logger.warn(f'Unable to lookup the TLSA record for {domain}. Is the DNSSEC zone okay on https://dnsviz.net/d/{domain}/dnssec/?')
|
flask.current_app.logger.warn(f'Unable to lookup the TLSA record for {domain}. Is the DNSSEC zone okay on https://dnsviz.net/d/{domain}/dnssec/?')
|
||||||
return app.config['DEFER_ON_TLS_ERROR']
|
return flask.current_app.config['DEFER_ON_TLS_ERROR']
|
||||||
except dns.exception.Timeout:
|
except dns.exception.Timeout:
|
||||||
flask.current_app.logger.warn(f'Timeout while resolving the TLSA record for {domain} ({timeout}s).')
|
flask.current_app.logger.warn(f'Timeout while resolving the TLSA record for {domain} ({timeout}s).')
|
||||||
except dns.resolver.NXDOMAIN:
|
except dns.resolver.NXDOMAIN:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user