From d5fdc1a3c022c9ff5657901479f2a7417423a82b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9=20H=C3=B8jbjerg=20Larsen?= Date: Wed, 27 Jul 2016 22:28:42 +0200 Subject: [PATCH] Add support for IPv6-only host names --- src/Commands/Issue.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Commands/Issue.php b/src/Commands/Issue.php index bef61bc..f7c5b7c 100644 --- a/src/Commands/Issue.php +++ b/src/Commands/Issue.php @@ -183,7 +183,7 @@ class Issue implements Command { foreach ($domainChunk as $domain) { $promises[$domain] = \Amp\Dns\resolve($domain, [ - "types" => [Record::A], + "types" => [Record::A, Record::AAAA], "hosts" => false, ]); } @@ -194,7 +194,7 @@ class Issue implements Command { } if (!empty($errors)) { - throw new AcmeException("Couldn't resolve the following domains to an IPv4 record: " . implode(", ", array_keys($errors))); + throw new AcmeException("Couldn't resolve the following domains to an IPv4 nor IPv6 record: " . implode(", ", array_keys($errors))); } }