summaryrefslogtreecommitdiffstats
path: root/daemon/network.h
diff options
context:
space:
mode:
authorOto Šťáva <oto.stava@nic.cz>2022-01-28 09:01:50 +0100
committerVladimír Čunát <vladimir.cunat@nic.cz>2022-02-22 11:52:11 +0100
commit4e5e53a7ce5aab57bab054d81154a4666adb1c03 (patch)
treebb0830da098d0548cc8b811b3dd1e2ffc9fa660a /daemon/network.h
parenttests/config: net.proxy_allowed() support (diff)
downloadknot-resolver-4e5e53a7ce5aab57bab054d81154a4666adb1c03.tar.xz
knot-resolver-4e5e53a7ce5aab57bab054d81154a4666adb1c03.zip
daemon: allow setting zero netmasks for net.proxy_allowed()
Diffstat (limited to 'daemon/network.h')
-rw-r--r--daemon/network.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/daemon/network.h b/daemon/network.h
index cbba8a8d..0e764b27 100644
--- a/daemon/network.h
+++ b/daemon/network.h
@@ -87,7 +87,12 @@ struct network {
* The ID is the usual: raw int index in the LUA_REGISTRYINDEX table. */
trie_t *endpoint_kinds;
/** See network_engage_endpoints() */
- bool missing_kind_is_error;
+ bool missing_kind_is_error : 1;
+
+ /** True: All IPv4 addresses are allowed to use the PROXYv2 protocol */
+ bool proxy_all4 : 1;
+ /** True: All IPv6 addresses are allowed to use the PROXYv2 protocol */
+ bool proxy_all6 : 1;
/** IPv4 addresses and networks allowed to use the PROXYv2 protocol */
trie_t *proxy_addrs4;