From a1224bbb6d3010cd3f1952271cbf9753be6db66c Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Tue, 4 Nov 2025 19:22:36 +0100 Subject: [PATCH] [tutorial 067] Jinja calculation for an hidden variable with a potential inaccessible varible --- firefox/55-proxy_dns_socks5.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/firefox/55-proxy_dns_socks5.yml b/firefox/55-proxy_dns_socks5.yml index a79c8ae4..0b92e44d 100644 --- a/firefox/55-proxy_dns_socks5.yml +++ b/firefox/55-proxy_dns_socks5.yml @@ -2,5 +2,17 @@ --- version: 1.1 -proxy_dns_socks5: false # Use proxy DNS when using SOCKS v5 +proxy_dns_socks5: + description: Use proxy DNS when using SOCKS v5 + 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" ...