diff options
Diffstat (limited to 'DomainDig/DNSLookupService.swift')
| -rw-r--r-- | DomainDig/DNSLookupService.swift | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/DomainDig/DNSLookupService.swift b/DomainDig/DNSLookupService.swift index 8c8d53c..00ca13b 100644 --- a/DomainDig/DNSLookupService.swift +++ b/DomainDig/DNSLookupService.swift @@ -87,7 +87,7 @@ struct DNSLookupService { } else { value = answer.data.trimmingCharacters(in: CharacterSet(charactersIn: "\"")) } - return DNSRecord(value: value, ttl: answer.TTL) + return DNSRecord(value: value, ttl: answer.ttl) } } @@ -202,8 +202,8 @@ struct DNSLookupService { let dnsResponse = try JSONDecoder().decode(CloudflareDNSResponse.self, from: data) return DNSLookupResponse( - answers: dnsResponse.Answer ?? [], - authenticatedData: dnsResponse.AD ?? false + answers: dnsResponse.answer ?? [], + authenticatedData: dnsResponse.authenticatedData ?? false ) } |
