]> git.ipfire.org Git - thirdparty/knot-resolver.git/commit
daemon/proxyv2: move PROXY protocol into its own layer
authorOto Šťáva <oto.stava@nic.cz>
Tue, 21 May 2024 17:04:38 +0000 (19:04 +0200)
committerOto Šťáva <oto.stava@nic.cz>
Mon, 27 May 2024 12:02:30 +0000 (14:02 +0200)
commitbd57187840ba87024259eebc0605434d36ca6244
tree833ffba42b90e36c10680141cd85211756f66936
parent20981b6ac87ff46a74f7696918a54cdc47ba35e8
daemon/proxyv2: move PROXY protocol into its own layer

Previously, PROXYv2 handling was partially implemented in the `io.c`
unit in the `_TCP` and `_UDP` protocol layers, which technically made
very little sense. This commit moves this handling into separate
`_PROXYV2_DGRAM` and `_PROXYV2_STREAM` protocol layers, basically
encapsulating the handling of proxies in the `proxyv2.c` unit.
daemon/io.c
daemon/main.c
daemon/proxyv2.c
daemon/proxyv2.h
daemon/session2.c
daemon/session2.h