Skip to content

Commit

Permalink
ipv6.md: mention IPv4 mapped addresses
Browse files Browse the repository at this point in the history
Reported-by: Josh Soref
Assisted-by: Jay Satiro
Fixes #13112
Closes #13131
  • Loading branch information
bagder committed Mar 15, 2024
1 parent 77b0571 commit 79cdae4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions docs/cmdline-opts/ipv6.md
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
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

0 comments on commit 79cdae4

Please sign in to comment.