Sujet : Re: inn, cleanfeed and ipv6
De : rayban (at) *nospam* raybanana.net (Ray Banana)
Groupes : news.software.nntpDate : 09. Apr 2025, 14:35:35
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <slrnvvctt7.b1sb.rayban@raybanana.net>
References : 1 2
User-Agent : slrn/pre1.0.4-9 (Linux)
* Gabx wrote:
This is excerpted from cleanfeed
>
if ($hdr{'Injection-Info'} =~ /^$hws*($Hostname)[ \t;]/) {
$state{injection_host} = "$1"
} elsif ($hdr{'X-Trace'} =~ /^$hws*($Hostname)$hws/) {
$state{injection_host} = "$1"
} else {
$state{injection_host} = first_path_host($hdr{Path});
};
>
>
The pattern defined in $Hostname is designed to match traditional hosts
– composed of letters, numbers and dots – or IPv4 addresses.
>
However, IPv6 addresses, which include hexadecimal characters and the
“:” character, do not fall into this set.
>
So, if an Injection-Info header contains an IPv6 address (e.g.
“2a01:4f8:c0c:2f94::1”), the regex will not match it correctly.
>
1. What happens if the regex doesn't match?
2. How do you set a reverse DNS name for your IPv6 IP address with Hetzner?
3. What happens when the IPv6 address of your peer has a reverse DNS name?
-- Пу́тін — хуйло́https://www.eternal-september.org