use domains that have matching addresses

This commit is contained in:
Erica Portnoy 2018-01-11 14:20:36 -08:00
parent 77493d6e1a
commit ffe8870b9b
2 changed files with 3 additions and 2 deletions

View file

@ -394,6 +394,7 @@ class NginxConfigurator(common.Installer):
vhost = self._select_best_name_match(matches)
if not vhost:
if create_if_no_match:
import ipdb; ipdb.set_trace()
vhost = self._vhost_from_duplicated_default(target_name)
else:
# No matches. Raise a misconfiguration error.

View file

@ -30,7 +30,7 @@ class HttpPerformTest(util.NginxTest):
token=b"\xba\xa9\xda?<m\xaewmx\xea\xad\xadv\xf4\x02\xc9y"
b"\x80\xe2_X\t\xe7\xc7\xa4\t\xca\xf7&\x945"
), "pending"),
domain="another.alias", account_key=account_key),
domain="ipv6.com", account_key=account_key),
achallenges.KeyAuthorizationAnnotatedChallenge(
challb=acme_util.chall_to_challb(
challenges.HTTP01(
@ -41,7 +41,7 @@ class HttpPerformTest(util.NginxTest):
achallenges.KeyAuthorizationAnnotatedChallenge(
challb=acme_util.chall_to_challb(
challenges.HTTP01(token=b"kNdwjxOeX0I_A8DXt9Msmg"), "pending"),
domain="sslon.com", account_key=account_key),
domain="migration.com", account_key=account_key),
]
def setUp(self):