[tutorial v1.1_240] Username is mandatory if a password is set
This commit is contained in:
parent
6564baeb01
commit
89b61b9f33
1 changed files with 32 additions and 0 deletions
|
|
@ -71,6 +71,38 @@ proxies:
|
|||
- SOCKS4
|
||||
- SOCKS5
|
||||
|
||||
username:
|
||||
description: Username
|
||||
type: unix_user
|
||||
mandatory:
|
||||
variable: _.password
|
||||
when_not: null
|
||||
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
|
||||
|
|
|
|||
Loading…
Reference in a new issue