Remove parsing of NNTP-Posting-Host.

NNTP-Posting-Host contains the client,
not the server.

Signed-off-by: Thomas Hochstein <thh@thh.name>
This commit is contained in:
Thomas Hochstein 2025-05-11 01:55:45 +02:00
parent c6432dcd44
commit 93b8d564ba

View file

@ -295,12 +295,6 @@ sub HostStats {
# reset if IP address
undef($Host) if $Host && $Host !~ /[g-z]/i;
}
# NNTP-Posting-Host
if (!$Host && $Header{'nntp-posting-host'}) {
($Host) = $Header{'nntp-posting-host'} =~ /^\s*([a-z0-9-_]+\.[a-z0-9-_.]+)/i;
# reset if IP address
undef($Host) if $Host && $Host !~ /[g-z]/i;
}
# Path
if (!$Host) {
if ($Header{'path'} =~ /!([^!]+)!.POSTED!/) {