86,10 → 86,17 |
echo "address=/$yt_dnsname/$youtube_safe_server" >> $DNSMASQ_WL_CONF |
done |
echo "add wl_ip_allowed $youtube_safe_server" >> $IP_WL |
|
# add 'SafeSearch' redirection for qwant searching |
$SED "/qwant/d" $DNSMASQ_WL_CONF # remove old qwant declaration |
qwant_safe_server=`host -ta safeapi.qwant.com | grep "address" | cut -d" " -f4` # retrieve qwant strict ip |
echo "# SafeSearch redirect server for qwant" >> $DNSMASQ_WL_CONF |
echo "address=/api.qwant.com/$qwant_safe_server" >> $DNSMASQ_WL_CONF |
else |
$SED "/google/d" $DNSMASQ_WL_CONF |
$SED "/bing/d" $DNSMASQ_WL_CONF |
$SED "/youtube/d" $DNSMASQ_WL_CONF |
$SED "/qwant/d" $DNSMASQ_WL_CONF |
rm $IP_WL |
fi |
systemctl restart dnsmasq-whitelist |