]> git.ipfire.org Git - thirdparty/knot-resolver.git/commitdiff
daemon/defer: add price-factor to config schema
authorLukáš Ondráček <lukas.ondracek@nic.cz>
Wed, 15 Jan 2025 15:35:15 +0000 (16:35 +0100)
committerVladimír Čunát <vladimir.cunat@nic.cz>
Sun, 19 Jan 2025 18:40:58 +0000 (19:40 +0100)
doc/_static/config.schema.json
python/knot_resolver/datamodel/view_schema.py

index 9c214885244ed345606857c448016cb7dfe67a36..52c3bccf838a1a6bd117537de970c36c7a2c2719 100644 (file)
                                 "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
                         }
                     }
                 }
index 34305c7534d94019e5c7f347810650c2c2bc3d26..7afc042da2a38edee350e1653146a9f98bb36578 100644 (file)
@@ -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