From a49a535e3e1e89146f8f26cb3ee88bf62f6d940b Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 9 Mar 2026 07:58:55 +0100 Subject: [PATCH] [tutorial v1.1_140] 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..8bd721b0 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' }}