diff options
| author | Christian Cleberg <[email protected]> | 2026-08-08 15:32:26 -0500 |
|---|---|---|
| committer | Christian Cleberg <[email protected]> | 2026-08-08 15:32:26 -0500 |
| commit | 49a999885fd23e59555429dbc111e3a3d87fd164 (patch) | |
| tree | 7818bbb9f81db35b4de140bb667d02e0dfdca2ab /DomainDig/DNSLookupService.swift | |
| parent | fe83ff502ffcaa59c7a22471c634d565972e7644 (diff) | |
| download | domain-dig-sonarcloud-cleanup.tar.gz domain-dig-sonarcloud-cleanup.tar.bz2 domain-dig-sonarcloud-cleanup.zip | |
Add CodingKeys for external JSON decodablessonarcloud-cleanup
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 ) } |
