|
|
|
@ -253,7 +253,6 @@ impl Service { |
|
|
|
|
dns_records: &'a [service::ConfigDNSRecord], |
|
|
|
|
challenge_token: String, |
|
|
|
|
|
|
|
|
|
domain_is_zone_apex: bool, |
|
|
|
|
dns_records_have_cname: bool, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -274,8 +273,6 @@ impl Service { |
|
|
|
|
} |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
// TODO this is wrong, e.g. something.co.uk
|
|
|
|
|
let domain_is_zone_apex = args.domain.as_rr().num_labels() == 2; |
|
|
|
|
let dns_records_have_cname = self.config.dns_records.iter().any(|r| match r { |
|
|
|
|
service::ConfigDNSRecord::CNAME { .. } => true, |
|
|
|
|
_ => false, |
|
|
|
@ -297,7 +294,6 @@ impl Service { |
|
|
|
|
dns_records: &self.config.dns_records, |
|
|
|
|
challenge_token: settings_hash, |
|
|
|
|
|
|
|
|
|
domain_is_zone_apex, |
|
|
|
|
dns_records_have_cname, |
|
|
|
|
}, |
|
|
|
|
) |
|
|
|
|