[tutorial v1.1_200] Username is mandatory if a password is set

This commit is contained in:
egarette@silique.fr 2026-03-09 07:59:07 +01:00
parent e35387d40b
commit 0831d8746f

View file

@ -78,6 +78,40 @@ proxies:
- SOCKS4
- SOCKS5
username:
description: Username
type: unix_user
mandatory:
jinja: |-
{{ _.password is not propertyerror and _.password }}
description: if a password is set
return_type: boolean
disabled:
jinja: |-
{{ _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] }}
return_type: boolean
description: |-
if type not in:
- HTTP
- HTTPS/SSL
- SOCKS4
- SOCKS5
password:
description: Password
type: secret
mandatory: false
disabled:
jinja: |-
{{ _.type not in ['HTTP', 'HTTPS/SSL', 'SOCKS4', 'SOCKS5'] }}
return_type: boolean
description: |-
if type not in:
- HTTP
- HTTPS/SSL
- SOCKS4
- SOCKS5
url:
description: URL
type: web_address