From 5434f5b2f50c4490a4bc918edad996df54a0e8db Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Wed, 29 Apr 2026 12:47:01 +0200 Subject: [PATCH] [tutorial v1.1_150] 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' }}