Closed glbrntt closed 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.
ARecord
AAAARecord
IPAddress
enum
Modifications:
IPAddress.IPv4
types and use them as the associated values in the
.IPv4
.IPv6
.ipv4
.ipv6
Result:
Motivation:
The
ARecord
andAAAARecord
use theIPAddress
enum
as their address types. However, they should only use IPv4 and IPv6 addresses respectively.Modifications:
IPAddress.IPv4
and IPAddress.IPv6types and use them as the associated values in the
IPAddress` enumIPAddress
cases from.IPv4
and.IPv6
to.ipv4
and.ipv6
as Swift case names are usually lower-camel caseResult:
ARecord
andAAAARecord
are clearer.ARecord
with an IPv6 address