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

This commit is contained in:
egarette@silique.fr 2024-11-02 14:58:50 +01:00
parent a8fe847d22
commit 9c61e428ab

View file

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