diff --git a/lib/github-pages-health-check/domain.rb b/lib/github-pages-health-check/domain.rb index 15df2a4..cbdb6c3 100644 --- a/lib/github-pages-health-check/domain.rb +++ b/lib/github-pages-health-check/domain.rb @@ -247,6 +247,7 @@ def cname_to_github_user_domain? # e.g. CNAME -> Domain -> Pages def cname_to_domain_to_pages? return false unless dns? + a_record_to_pages = dns.select { |d| d.type == Dnsruby::Types::A && d.name.to_s == host }.first return false unless a_record_to_pages && cname? && !cname_to_pages_dot_github_dot_com? && @www_cname diff --git a/lib/github-pages-health-check/version.rb b/lib/github-pages-health-check/version.rb index a7c79a5..a2e6a2e 100644 --- a/lib/github-pages-health-check/version.rb +++ b/lib/github-pages-health-check/version.rb @@ -2,6 +2,6 @@ module GitHubPages module HealthCheck - VERSION = "1.18.4" + VERSION = "1.18.5" end end