From 9c61e428ab6ee2627e0796565b671c6df4612ef6 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Sat, 2 Nov 2024 14:58:50 +0100 Subject: [PATCH] [tutorial 077] Jinja calculation for an hidden variable with a potential inaccessible varible --- firefox/55-proxy_dns_socks5.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/firefox/55-proxy_dns_socks5.yml b/firefox/55-proxy_dns_socks5.yml index c228dd4..a52a95e 100644 --- a/firefox/55-proxy_dns_socks5.yml +++ b/firefox/55-proxy_dns_socks5.yml @@ -2,3 +2,13 @@ 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"