[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: manual:
description: Manual proxy configuration description: Manual proxy configuration
disabled: disabled:
variable: proxy_mode variable: _.proxy_mode
when_not: 'Manual proxy configuration' when_not: 'Manual proxy configuration'
http_proxy: # HTTP Proxy http_proxy: # HTTP Proxy

View file

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

View file

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

View file

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

View file

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

View file

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

View file

@ -11,7 +11,7 @@ dns_over_https: # DNS over HTTPS
- Custom - Custom
default: Cloudflare default: Cloudflare
disabled: disabled:
variable: dns_over_https.enable_dns_over_https variable: _.enable_dns_over_https
when: false when: false
custom_dns_url: custom_dns_url:
@ -19,7 +19,7 @@ dns_over_https: # DNS over HTTPS
type: web_address type: web_address
disabled: disabled:
jinja: | 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 provider is not custom
{% endif %} {% endif %}
description: if "dns_over_https.provider" is not "Custom" description: if "dns_over_https.provider" is not "Custom"