summaryrefslogtreecommitdiff
path: root/DomainDig/ReachabilityService.swift
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-04-20 15:28:12 -0500
committerChristian Cleberg <[email protected]>2026-04-20 15:28:12 -0500
commitee2520f2c0c2d806fd284c3d6b8a81a3822f5270 (patch)
tree0680550a1071e01546ba074c2f20b1bf5a452238 /DomainDig/ReachabilityService.swift
parent4e94ee723cd19c964b1cf37792931e0c7c4614f4 (diff)
downloaddomain-dig-ee2520f2c0c2d806fd284c3d6b8a81a3822f5270.tar.gz
domain-dig-ee2520f2c0c2d806fd284c3d6b8a81a3822f5270.tar.bz2
domain-dig-ee2520f2c0c2d806fd284c3d6b8a81a3822f5270.zip
feat(v1.8): improve result structure, history, and consistency
- normalize sections and add summary card - fix resolver usage in reverse DNS - include custom port scans in history/export - standardize error handling - decompose ContentView into smaller views
Diffstat (limited to 'DomainDig/ReachabilityService.swift')
-rw-r--r--DomainDig/ReachabilityService.swift5
1 files changed, 3 insertions, 2 deletions
diff --git a/DomainDig/ReachabilityService.swift b/DomainDig/ReachabilityService.swift
index 0bb30ae..3fb7dd9 100644
--- a/DomainDig/ReachabilityService.swift
+++ b/DomainDig/ReachabilityService.swift
@@ -29,10 +29,11 @@ struct ReachabilityService {
}
}
- static func checkAll(domain: String) async -> [PortReachability] {
+ static func checkAll(domain: String) async -> ServiceResult<[PortReachability]> {
async let port443 = check(domain: domain, port: 443)
async let port80 = check(domain: domain, port: 80)
- return await [port443, port80]
+ let results = await [port443, port80]
+ return results.isEmpty ? .empty("No reachability results") : .success(results)
}
}