-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add concrete IPv4 and IPv6 types (#21)
Motivation: The `ARecord` and `AAAARecord` use the `IPAddress` `enum` as their address types. However, they should only use IPv4 and IPv6 addresses respectively. Modifications: - Add `IPAddress.IPv4` and IPAddress.IPv6` types and use them as the associated values in the `IPAddress` enum - Change the casing of the `IPAddress` cases from `.IPv4` and `.IPv6` to `.ipv4` and `.ipv6` as Swift case names are usually lower-camel case Result: - The types of IP address used by `ARecord` and `AAAARecord` are clearer
- Loading branch information
Showing
4 changed files
with
36 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters