From 0e7706ffa36c89051b7725209b8e9b8c2e390149 Mon Sep 17 00:00:00 2001 From: Sebastian Dinator Date: Thu, 24 Oct 2024 02:05:13 -0300 Subject: [PATCH] Improved error message for invalid protocol in adlist download MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Sebastian Dinator Signed-off-by: Sebastián Dinator --- gravity.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gravity.sh b/gravity.sh index 6a4fb88e..f98ecdcf 100755 --- a/gravity.sh +++ b/gravity.sh @@ -598,7 +598,9 @@ gravity_DownloadBlocklistFromUrl() { # Check for allowed protocols if [[ $url != "http"* && $url != "https"* && $url != "file"* && $url != "ftp"* && $url != "ftps"* && $url != "sftp"* ]]; then - echo -e "${OVER} ${CROSS} ${str} Invalid protocol specified, ignoring list" + echo -e "${OVER} ${CROSS} ${str} Invalid protocol specified. Ignoring list." + echo -e " Ensure your URL starts with a valid protocol like http:// or https:// ." + echo -e " E.g., try http://localhost/adblock.txt instead of localhost/adblock.txt." download=false fi