mirror of
https://github.com/certbot/certbot.git
synced 2026-03-23 19:03:33 -04:00
Added domain checks for apache installer
This commit is contained in:
parent
2d5d4a65c4
commit
5dcd508827
1 changed files with 7 additions and 1 deletions
|
|
@ -369,7 +369,13 @@ class ApacheConfigurator(augeas_configurator.AugeasConfigurator):
|
|||
vhost_macro = []
|
||||
|
||||
for vhost in self.vhosts:
|
||||
all_names.update(vhost.get_names())
|
||||
# Check domains for validity
|
||||
for name in vhost.get_names():
|
||||
try:
|
||||
le_util.check_domain_sanity(name)
|
||||
all_names.add(name)
|
||||
except errors.ConfigurationError:
|
||||
pass
|
||||
if vhost.modmacro:
|
||||
vhost_macro.append(vhost.filep)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue