[tutorial 067] Jinja calculation for an hidden variable with a potential inaccessible varible

This commit is contained in:
egarette@silique.fr 2024-10-23 20:01:54 +02:00
parent 9b6f88f745
commit 2c3a3f9f89

View file

@ -2,3 +2,17 @@
proxy_dns_socks5:
description: Use proxy DNS when using SOCKS v5
default: false
disabled:
jinja: |
{% if socks_version is not defined %}
the proxy mode is not manual
{% elif socks_version == 'v4' %}
socks version is v4
{% endif %}
params:
socks_version:
variable: manual.socks_proxy.version
propertyerror: false
description: |
if "firefox.proxy_mode" is not "Manual proxy configuration"
or "firefox.manual.socks_proxy.version" is "v4"