mirror of
https://github.com/certbot/certbot.git
synced 2026-05-28 04:34:11 -04:00
Allow authentication if there's no appropriate vhost
This commit is contained in:
parent
cad7d4c8ed
commit
c8df0f9cde
1 changed files with 1 additions and 7 deletions
|
|
@ -53,14 +53,8 @@ class NginxTlsSni01(common.TLSSNI01):
|
|||
|
||||
for achall in self.achalls:
|
||||
vhost = self.configurator.choose_vhost(achall.domain)
|
||||
if vhost is None:
|
||||
logger.error(
|
||||
"No nginx vhost exists with server_name matching: %s. "
|
||||
"Please specify server_names in the Nginx config.",
|
||||
achall.domain)
|
||||
return None
|
||||
|
||||
if vhost.addrs:
|
||||
if vhost is not None and vhost.addrs:
|
||||
addresses.append(list(vhost.addrs))
|
||||
else:
|
||||
addresses.append([obj.Addr.fromstring(default_addr)])
|
||||
|
|
|
|||
Loading…
Reference in a new issue