From 0b25a2278bbfc0bd4b424fd6d67d3937aeff2d7e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Luk=C3=A1=C5=A1=20Ondr=C3=A1=C4=8Dek?= Date: Wed, 15 Jan 2025 16:35:15 +0100 Subject: [PATCH] daemon/defer: add price-factor to config schema --- doc/_static/config.schema.json | 9 ++++++++- python/knot_resolver/datamodel/view_schema.py | 1 + 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/_static/config.schema.json b/doc/_static/config.schema.json index 9c2148852..52c3bccf8 100644 --- a/doc/_static/config.schema.json +++ b/doc/_static/config.schema.json @@ -644,11 +644,18 @@ "type": "boolean", "description": "Enable/disable DNS64.", "default": true + }, + "price-factor": { + "type": "number", + "minimum": 0.0, + "description": "Multiplies rate-limiting and defer prices of operations, use 0 to whitelist.", + "default": 1.0 } }, "default": { "minimize": true, - "dns64": true + "dns64": true, + "price_factor": 1.0 } } } diff --git a/python/knot_resolver/datamodel/view_schema.py b/python/knot_resolver/datamodel/view_schema.py index 34305c753..7afc042da 100644 --- a/python/knot_resolver/datamodel/view_schema.py +++ b/python/knot_resolver/datamodel/view_schema.py @@ -12,6 +12,7 @@ class ViewOptionsSchema(ConfigSchema): --- minimize: Send minimum amount of information in recursive queries to enhance privacy. dns64: Enable/disable DNS64. + price_factor: Multiplies rate-limiting and defer prices of operations, use 0 to whitelist. """ minimize: bool = True -- 2.47.2