Improved error message for invalid protocol in adlist download (#5806)

This commit is contained in:
yubiuser 2024-10-24 21:02:40 +02:00 committed by GitHub
commit 16af216b80
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -598,7 +598,8 @@ 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:// , https:// or file:// ."
download=false
fi