From 3a6fc033f9c87ca0d0e84a27335f4a1d058d9ea8 Mon Sep 17 00:00:00 2001 From: Antonio Borneo Date: Sat, 15 Jun 2024 14:32:23 +0200 Subject: [PATCH] csd-wrapper: remove trailing part from URL The Cisco ASA server I use got some update. It suddenly stopped providing the reply: /CACHE and went back to the legacy reply: The csd-wrapper now receives in the command line -url https://server/CACHE/sdesktop/install/result.htm instead of -url https://server/CACHE and, obviously, the concatenation of $URL within the script makes impossible to download the manifest. Strip away the trailing "/sdesktop/*" from $URL. This should work even in case of custom path in the ASA server. Signed-off-by: Antonio Borneo --- trojans/csd-wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trojans/csd-wrapper.sh b/trojans/csd-wrapper.sh index 96d7956d..13b96640 100755 --- a/trojans/csd-wrapper.sh +++ b/trojans/csd-wrapper.sh @@ -62,6 +62,8 @@ while [ "$1" ]; do shift done +URL=$(echo $URL | sed 's,/sdesktop/.*,,') + OS="$(uname -s)" ARCH="$(uname -m)" -- GitLab