Initialize addrs_to_add

This commit is contained in:
Joona Hoikkala 2018-01-11 16:57:04 +02:00
parent 34217cf36e
commit 88d4a7da55
No known key found for this signature in database
GPG key ID: 1708DAE66E87A524

View file

@ -76,7 +76,7 @@ class NginxChallengePerformer(common.ChallengePerformer):
for achall in self.achalls:
vhost = self.configurator.choose_vhost(achall.domain, create_if_no_match=True)
addrs_to_add = None
if vhost is not None and vhost.addrs:
if ssl:
addrs_to_add = vhost.addrs