[tutorial v1.1_070] A conditional hidden family with Jinja
This commit is contained in:
parent
d187bac373
commit
f7e40cb3dd
2 changed files with 4 additions and 6 deletions
|
|
@ -1,5 +0,0 @@
|
||||||
# New variable
|
|
||||||
|
|
||||||
| Variable | Description |
|
|
||||||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
||||||
| **<a id="manual.:::identifier:::_proxy.version" name="manual.:::identifier:::_proxy.version">manual.*socks*_proxy.version</a>**<br/>[`choice`](https://rougail.readthedocs.io/en/latest/variable.html#variables-types) `mandatory` *`disabled`* | SOCKS host version used by proxy.<br/>**Choices**: <br/>• v4<br/>• v5 **← (default)**<br/>**Disabled**: when the identifier is "HTTPS". |
|
|
||||||
|
|
@ -9,7 +9,10 @@ manual:
|
||||||
'{{ identifier }}_proxy':
|
'{{ identifier }}_proxy':
|
||||||
description: '{{ identifier }} Proxy'
|
description: '{{ identifier }} Proxy'
|
||||||
hidden:
|
hidden:
|
||||||
variable: _.use_for_https
|
jinja: |-
|
||||||
|
{% if _.use_for_https %}
|
||||||
|
HTTPS is same has HTTP
|
||||||
|
{% endif %}
|
||||||
dynamic:
|
dynamic:
|
||||||
- HTTPS
|
- HTTPS
|
||||||
- SOCKS
|
- SOCKS
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue