[fix] lower domain

Lower domain to avoid some edge cases issues
See: https://forum.yunohost.org/t/invalid-domain-causes-diagnosis-web-to-fail-fr-on-demand/11765
This commit is contained in:
ljf (zamentur) 2020-06-06 16:07:18 +02:00 committed by GitHub
parent d2f8f720ab
commit f46eb01c03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -90,6 +90,10 @@ def domain_add(operation_logger, domain, dyndns=False):
operation_logger.start()
# Lower domain to avoid some edge cases issues
# See: https://forum.yunohost.org/t/invalid-domain-causes-diagnosis-web-to-fail-fr-on-demand/11765
domain = domain.lower()
# DynDNS domain
if dyndns: