From 3b494c94e101d02d2ca50ff2b1c0d1fa5ca85270 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 5 May 2026 06:54:29 +0200 Subject: [PATCH] [tutorial v1.1_170] A variable with custom validation --- firefox/60-dns_over_https.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/firefox/60-dns_over_https.yml b/firefox/60-dns_over_https.yml index 309c6534..bc033240 100644 --- a/firefox/60-dns_over_https.yml +++ b/firefox/60-dns_over_https.yml @@ -20,6 +20,11 @@ dns_over_https: # DNS over HTTPS custom_dns_url: description: Custom DNS URL type: web_address + validators: + - jinja: |- + {{ _.custom_dns_url.startswith("http://") }} + return_type: boolean + description: must starts with 'https://' only disabled: jinja: |- {{ _.provider is propertyerror or _.provider != 'Custom' }}