mirror of
https://github.com/pi-hole/pi-hole
synced 2025-01-03 04:30:55 +00:00
Lints
Signed-off-by: Dan Schaper <dan.schaper@pi-hole.net>
This commit is contained in:
parent
f9e71bee0a
commit
5c621fa253
@ -257,11 +257,11 @@ gravity_DownloadBlocklistFromUrl() {
|
|||||||
esac
|
esac
|
||||||
|
|
||||||
if [[ "${blocked}" == true ]]; then
|
if [[ "${blocked}" == true ]]; then
|
||||||
printf -v ip_addr "%s" ${PIHOLE_DNS_1%#*}
|
printf -v ip_addr "%s" "${PIHOLE_DNS_1%#*}"
|
||||||
if [[ ${PIHOLE_DNS_1} != *"#"* ]]; then
|
if [[ ${PIHOLE_DNS_1} != *"#"* ]]; then
|
||||||
port=53
|
port=53
|
||||||
else
|
else
|
||||||
printf -v port "%s" ${PIHOLE_DNS_1#*#}
|
printf -v port "%s" "${PIHOLE_DNS_1#*#}"
|
||||||
fi
|
fi
|
||||||
ip=$(dig "@${ip_addr}" -p "${port}" +short "${domain}")
|
ip=$(dig "@${ip_addr}" -p "${port}" +short "${domain}")
|
||||||
if [[ $(echo "${url}" | awk -F '://' '{print $1}') = "https" ]]; then
|
if [[ $(echo "${url}" | awk -F '://' '{print $1}') = "https" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user