Fix domains with specials characters

This commit is contained in:
Andros Fenollosa 2023-08-21 12:01:43 +02:00
parent bc7db86c70
commit b9392988fb

5
maza
View File

@ -113,9 +113,8 @@ update() {
custom-sed -i.bak '/^$/d' "$CONFIG$LIST" custom-sed -i.bak '/^$/d' "$CONFIG$LIST"
# Make dnsmasq format # Make dnsmasq format
cp "$CONFIG$LIST" "$CONFIG$LIST_DNSMASQ" cp "$CONFIG$LIST" "$CONFIG$LIST_DNSMASQ"
## doubleclick.net to address=/doubleclick.net/127.0.0.1 ## doubleclick.net to address="/doubleclick.net/127.0.0.1"
custom-sed -i.bak "s/^/address=\//g" "$CONFIG$LIST_DNSMASQ" custom-sed -i.bak 's/\(.*\)/address="\/\1\/127.0.0.1"/' "$CONFIG$LIST_DNSMASQ"
custom-sed -i.bak "s/$/\/127.0.0.1/g" "$CONFIG$LIST_DNSMASQ"
## Add start tag DNS list in first line ## Add start tag DNS list in first line
custom-sed -i.bak "1i\\$AUTHOR" "$CONFIG$LIST" custom-sed -i.bak "1i\\$AUTHOR" "$CONFIG$LIST"
custom-sed -i.bak "1i\\$PROJECT" "$CONFIG$LIST" custom-sed -i.bak "1i\\$PROJECT" "$CONFIG$LIST"