diff options
author | V3n3RiX <venerix@koprulu.sector> | 2023-06-25 07:29:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2023-06-25 07:29:14 +0100 |
commit | e59b99df9503539c0231e655a17bccf83f8a270d (patch) | |
tree | dbd3fc51c710879436a4122898a3653c8c0d4ae8 /mail-filter/spamassassin/files | |
parent | 9fce2d9787c37a690336f5e345a49d83ee60bc8a (diff) |
gentoo auto-resync : 25:06:2023 - 07:29:14
Diffstat (limited to 'mail-filter/spamassassin/files')
-rw-r--r-- | mail-filter/spamassassin/files/4.0.0-DnsResolver-udpsize.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/mail-filter/spamassassin/files/4.0.0-DnsResolver-udpsize.patch b/mail-filter/spamassassin/files/4.0.0-DnsResolver-udpsize.patch new file mode 100644 index 000000000000..a9462c21433e --- /dev/null +++ b/mail-filter/spamassassin/files/4.0.0-DnsResolver-udpsize.patch @@ -0,0 +1,16 @@ +https://svn.apache.org/viewvc/spamassassin/trunk/lib/Mail/SpamAssassin/DnsResolver.pm?r1=1909910&r2=1909909&pathrev=1909910 +--- a/lib/Mail/SpamAssassin/DnsResolver.pm ++++ b/lib/Mail/SpamAssassin/DnsResolver.pm +@@ -599,7 +599,11 @@ + my $udp_payload_size = $self->{conf}->{dns_options}->{edns}; + if ($udp_payload_size && $udp_payload_size > 512) { + # dbg("dns: adding EDNS ext, UDP payload size %d", $udp_payload_size); +- $packet->edns->size($udp_payload_size); ++ if ($packet->edns->can('udpsize')) { # since Net::DNS 1.38 ++ $packet->edns->udpsize($udp_payload_size); ++ } else { ++ $packet->edns->size($udp_payload_size); ++ } + } + } + |