ipv6.md: mention IPv4 mapped addresses
Reported-by: Josh Soref Assisted-by: Jay Satiro Fixes #13112 Closes #13131
This commit is contained in:
parent
77b0571cdc
commit
79cdae4fc7
@ -22,3 +22,7 @@ Example:
|
|||||||
|
|
||||||
Use IPv6 addresses only when resolving hostnames, and not for example try
|
Use IPv6 addresses only when resolving hostnames, and not for example try
|
||||||
IPv4.
|
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.
|
||||||
|
|||||||
@ -31,6 +31,7 @@ my $errors;
|
|||||||
|
|
||||||
my %accepted=('curl' => 1,
|
my %accepted=('curl' => 1,
|
||||||
'libcurl' => 1,
|
'libcurl' => 1,
|
||||||
|
'macOS' => 1,
|
||||||
'c-ares' => 1);
|
'c-ares' => 1);
|
||||||
|
|
||||||
sub checkfile {
|
sub checkfile {
|
||||||
@ -65,7 +66,7 @@ sub checkfile {
|
|||||||
$ignore ^= 1;
|
$ignore ^= 1;
|
||||||
}
|
}
|
||||||
if(!$ignore) {
|
if(!$ignore) {
|
||||||
if(($prevl =~ /\.\z/) && ($line =~ /^( *)([a-z-]+)/)) {
|
if(($prevl =~ /\.\z/) && ($line =~ /^( *)([a-z][A-Za-z-]*)/)) {
|
||||||
my ($prefix, $word) = ($1, $2);
|
my ($prefix, $word) = ($1, $2);
|
||||||
if($word =~ /^[a-z]/ && !$accepted{$word}) {
|
if($word =~ /^[a-z]/ && !$accepted{$word}) {
|
||||||
my $c = length($prefix);
|
my $c = length($prefix);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user