commit 9752886: [Minor] Increase EDNS0 max packet size to couple with some poor TXT records

Vsevolod Stakhov vsevolod at highsecure.ru
Fri Dec 17 18:14:04 UTC 2021


Author: Vsevolod Stakhov
Date: 2021-12-17 18:08:24 +0000
URL: https://github.com/rspamd/rspamd/commit/9752886d5dde4b2295d3b7b91e3ea23416eea641 (HEAD -> master)

[Minor] Increase EDNS0 max packet size to couple with some poor TXT records

---
 contrib/librdns/dns_private.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/contrib/librdns/dns_private.h b/contrib/librdns/dns_private.h
index 76bfba8fe..19729f1e6 100644
--- a/contrib/librdns/dns_private.h
+++ b/contrib/librdns/dns_private.h
@@ -34,7 +34,7 @@
 static const int dns_port = 53;
 static const int default_io_cnt = 8;
 
-#define UDP_PACKET_SIZE 4096
+#define UDP_PACKET_SIZE (4096 * 2)
 
 #define DNS_COMPRESSION_BITS 0xC0
 


More information about the Commits mailing list