[tutorial 090] Variable in same family

This commit is contained in:
egarette@silique.fr 2024-11-02 14:58:57 +01:00
parent 9ca5e78812
commit f8ae993aff
7 changed files with 9 additions and 9 deletions

View file

@ -2,7 +2,7 @@
manual:
description: Manual proxy configuration
disabled:
variable: proxy_mode
variable: _.proxy_mode
when_not: 'Manual proxy configuration'
http_proxy: # HTTP Proxy

View file

@ -10,7 +10,7 @@ manual:
- SOCKS
hidden:
jinja: |
{% if my_identifier == 'HTTPS' and manual.use_for_https %}
{% if my_identifier == 'HTTPS' and _.use_for_https %}
HTTPS is same has HTTP
{% endif %}
params:

View file

@ -3,5 +3,5 @@ auto:
description: Automatic proxy configuration URL
type: web_address
disabled:
variable: proxy_mode
variable: _.proxy_mode
when_not: Automatic proxy configuration URL

View file

@ -10,7 +10,7 @@ no_proxy:
multi: true
mandatory: false
disabled:
variable: proxy_mode
variable: _.proxy_mode
when: No proxy
examples:
- .mozilla.org

View file

@ -3,5 +3,5 @@ prompt_authentication:
description: Prompt for authentication if password is saved
default: true
disabled:
variable: proxy_mode
variable: _.proxy_mode
when: No proxy

View file

@ -5,9 +5,9 @@ proxy_dns_socks5:
mode: advanced
disabled:
jinja: |
{% if manual.socks_proxy.version is propertyerror %}
{% if _.manual.socks_proxy.version is propertyerror %}
the proxy mode is not manual
{% elif manual.socks_proxy.version == 'v4' %}
{% elif _.manual.socks_proxy.version == 'v4' %}
socks version is v4
{% endif %}
description: |

View file

@ -11,7 +11,7 @@ dns_over_https: # DNS over HTTPS
- Custom
default: Cloudflare
disabled:
variable: dns_over_https.enable_dns_over_https
variable: _.enable_dns_over_https
when: false
custom_dns_url:
@ -19,7 +19,7 @@ dns_over_https: # DNS over HTTPS
type: web_address
disabled:
jinja: |
{% if dns_over_https.provider is propertyerror or dns_over_https.provider != 'Custom' %}
{% if _.provider is propertyerror or _.provider != 'Custom' %}
provider is not custom
{% endif %}
description: if "dns_over_https.provider" is not "Custom"