From 64066c642215bced03b095d63a0b1ec7decef898 Mon Sep 17 00:00:00 2001 From: Simone Karin Lehmann Date: Thu, 19 Mar 2026 11:47:08 +0100 Subject: [PATCH 1/2] fix DEBUG mode --- sleepproxyclient.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleepproxyclient.py b/sleepproxyclient.py index 782ea1d..e96d323 100644 --- a/sleepproxyclient.py +++ b/sleepproxyclient.py @@ -459,7 +459,7 @@ def parse_arguments() -> argparse.Namespace: "format": "%(asctime)s spc[%(process)d] %(levelname)s %(filename)s[%(funcName)s:%(lineno)d] %(message)s", "datefmt": "%b %d %Y %H:%M:%S", } - if args.debug is not None: + if args.debug: logging_config["level"] = logging.DEBUG if args.logfile is not None: logging_config["filename"] = args.logfile From 962f30d202114cb11075da8b379265adc159b8d5 Mon Sep 17 00:00:00 2001 From: Simone Karin Lehmann Date: Mon, 20 Apr 2026 17:09:01 +0200 Subject: [PATCH 2/2] do NOT quote SPC_PREFERRED_PROXIES. Quoting would gibe a single argument, even if the var is a space separated list. --- sleepproxyclient.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sleepproxyclient.sh b/sleepproxyclient.sh index a7800a2..dac131a 100755 --- a/sleepproxyclient.sh +++ b/sleepproxyclient.sh @@ -33,7 +33,7 @@ fi PREFERRED_PROXIES_OPT=() if [ "$SPC_PREFERRED_PROXIES" != "" ] then - PREFERRED_PROXIES_OPT=("--preferred-proxies" "$SPC_PREFERRED_PROXIES") + PREFERRED_PROXIES_OPT=("--preferred-proxies" $SPC_PREFERRED_PROXIES) fi LEASE_TIME_OPT=()