From 6da7771733d591798a61688724ef0601ce1f01bd Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Thu, 12 Mar 2026 08:11:18 +0100 Subject: [PATCH] [tutorial v1.1_210] Username is mandatory if a password is set --- foxyproxy/00-foxyproxy.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/foxyproxy/00-foxyproxy.yml b/foxyproxy/00-foxyproxy.yml index 30b3c1eb..14f63f37 100644 --- a/foxyproxy/00-foxyproxy.yml +++ b/foxyproxy/00-foxyproxy.yml @@ -71,6 +71,44 @@ proxies: - SOCKS4 - SOCKS5 + username: + description: Username + type: unix_user + mandatory: + jinja: |- + {% if _.password is not propertyerror and _.password %} + true + {% else %} + false + {% endif %} + return_type: boolean + description: if a password is set + 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