]> git.ipfire.org Git - thirdparty/pdns.git/commit
rec: only store IP (and no port) as local address in cookie store 16131/head
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 17 Sep 2025 11:00:02 +0000 (13:00 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 17 Sep 2025 11:05:08 +0000 (13:05 +0200)
commit46ecf0326b58093b84fe94e609c67b6b76a89758
treec3e287317439b3a432c1c6ac2ba6e9baa49d6102
parenta7f305b955788c05ffb31d32f407b8c2e658cf79
rec: only store IP (and no port) as local address in cookie store

Otherwise binding a local TCP port will fail, as the stored port
is likely still in use do to connections lingering.

Observed when forcing DoT to specific nameservers that support
cookies.  In many cases the effect was: see the bind call failing and
go to the next nameserver, that's likely why it was noticed before.

Signed-off-by: Otto Moerbeek <otto.moerbeek@open-xchange.com>
pdns/recursordist/lwres.cc