From 0831d8746f659bf929a9df3df67a2bd9cfbf2b71 Mon Sep 17 00:00:00 2001 From: Emmanuel Garette Date: Mon, 9 Mar 2026 07:59:07 +0100 Subject: [PATCH] [tutorial v1.1_200] Username is mandatory if a password is set --- foxyproxy/00-foxyproxy.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/foxyproxy/00-foxyproxy.yml b/foxyproxy/00-foxyproxy.yml index c8839c3a..aa33703e 100644 --- a/foxyproxy/00-foxyproxy.yml +++ b/foxyproxy/00-foxyproxy.yml @@ -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