Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ipv6.md: mention IPv4 mapped addresses #13131

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/cmdline-opts/ipv6.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,7 @@ Example:

Use IPv6 addresses only when resolving hostnames, and not for example try
IPv4.

Your resolver may respond to an IPv6-only resolve request by returning IPv6
addresses that contain "mapped" IPv4 addresses for compatibility purposes.
macOS is known to do this.
3 changes: 2 additions & 1 deletion tests/test1275.pl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@

my %accepted=('curl' => 1,
'libcurl' => 1,
'macOS' => 1,
'c-ares' => 1);

sub checkfile {
Expand Down Expand Up @@ -65,7 +66,7 @@ sub checkfile {
$ignore ^= 1;
}
if(!$ignore) {
if(($prevl =~ /\.\z/) && ($line =~ /^( *)([a-z-]+)/)) {
if(($prevl =~ /\.\z/) && ($line =~ /^( *)([a-z][A-Za-z-]*)/)) {
my ($prefix, $word) = ($1, $2);
if($word =~ /^[a-z]/ && !$accepted{$word}) {
my $c = length($prefix);
Expand Down