Compare commits

..

1 commit

Author SHA1 Message Date
0a9139fdbe [tutorial 083] A variable with custom validation 2024-11-02 14:58:56 +01:00

View file

@ -23,3 +23,9 @@ dns_over_https: # DNS over HTTPS
provider is not custom
{% endif %}
description: if "dns_over_https.provider" is not "Custom"
validators:
- jinja: |
{% if dns_over_https.custom_dns_url.startswith('http://') %}
only https is allowed
{% endif %}
description: must starts with 'https://' only