]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/proxyv2: fix client TCP/TLS + merge state structs
authorOto Šťáva <oto.stava@nic.cz>
Wed, 31 Jul 2024 12:16:33 +0000 (14:16 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Wed, 7 Aug 2024 08:36:00 +0000 (10:36 +0200)
commitb5fa236f5a14fea42450f7575c57c28512f3d060
treeb9f3fec7ca1ec64b18a13bfbea20f0363d959bc8
parenta9c7dd251e56e7bcfcd5c3bb611a2f7b3cc2f1c2
daemon/proxyv2: fix client TCP/TLS + merge state structs

Firstly, this adds a missing assignment of `comm->proxy`, which would
cause the resolver not to know that a client asked via TCP/TLS, if the
proxy also asked via TCP/TLS.

Secondly, it merges `struct pl_proxyv2_sess_data` and
`struct pl_proxyv2_iter_data` into a single `struct pl_proxyv2_state`,
since they were practically the same. And it adds a bit of documentation
to the struct.
daemon/proxyv2.c
daemon/proxyv2.test/kresd_config.j2