Simplify EDNS0 packet size handling.

In the post 2020 flag-day world, we limit UDP packets to 1232 bytes
which can go anywhere, so the dodgy code to try and determine the
functional maxmimum packet size on the path from upstream servers
is obsolete.
This commit is contained in:
Simon Kelley
2024-11-24 23:06:22 +00:00
parent 04d7693d86
commit f04cf8506a
5 changed files with 31 additions and 75 deletions

View File

@@ -1587,10 +1587,6 @@ void check_servers(int no_loop_check)
for (count = 0, serv = daemon->servers; serv; serv = serv->next)
{
/* Init edns_pktsz for newly created server records. */
if (serv->edns_pktsz == 0)
serv->edns_pktsz = daemon->edns_pktsz;
#ifdef HAVE_DNSSEC
if (option_bool(OPT_DNSSEC_VALID))
{