apple / swift-async-dns-resolver

A Swift library for asynchronous DNS requests, wrapping c-ares with Swift-friendly APIs and data structures.
Apache License 2.0
82 stars 12 forks source link

Add concrete IPv4 and IPv6 types #21

Closed glbrntt closed 4 months ago

glbrntt commented 4 months ago

Motivation:

The ARecord and AAAARecord use the IPAddress enum as their address types. However, they should only use IPv4 and IPv6 addresses respectively.

Modifications:

Result: