]> git.ipfire.org Git - thirdparty/bind9.git/commit
use configured source ports for UDP requests
authorEvan Hunt <each@isc.org>
Thu, 2 Feb 2023 20:16:49 +0000 (12:16 -0800)
committerEvan Hunt <each@isc.org>
Mon, 6 Feb 2023 23:03:58 +0000 (15:03 -0800)
commit4d50c912ba78ac6a98b3f0e01e2d7563ea5aefd7
treef9542da361499346e22b2ec312a4676a60b54b5f
parente46d5d84fcceb49f90a4d22714704a225befb9d6
use configured source ports for UDP requests

the optional 'port' option, when used with notify-source,
transfer-source, etc, is used to set up UDP dispatches with a
particular source port, but when the actual UDP connection was
established the port would be overridden with a random one. this
has been fixed.

(configuring source ports is deprecated in 9.20 and slated for
removal in 9.22, but should still work correctly until then.)
lib/dns/dispatch.c