Add pc support
This commit is contained in:
parent
e8429d66ed
commit
537d14c8cd
4 changed files with 112 additions and 75 deletions
|
|
@ -12,6 +12,6 @@ curl --proxy "${PROXY}" https://raw.githubusercontent.com/felixonmars/dnsmasq-ch
|
|||
curl --proxy "${PROXY}" https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/refs/heads/master/apple.china.conf -o "${CACHE_FOLDER}/apple.china.conf"
|
||||
curl --proxy "${PROXY}" https://raw.githubusercontent.com/felixonmars/dnsmasq-china-list/refs/heads/master/bogus-nxdomain.china.conf -o "${CACHE_FOLDER}/bogus-nxdomain.china.conf"
|
||||
|
||||
cp ${CACHE_FOLDER}/*.conf /tmp/dnsmasq.d/
|
||||
[ -d "/tmp/dnsmasq.d/" ] && cp ${CACHE_FOLDER}/*.conf /tmp/dnsmasq.d/
|
||||
grep -v '^#' "${CACHE_FOLDER}/bogus-nxdomain.china.conf" | grep -v '^$' | sed -e 's/=/ /g' > /etc/smartdns/conf.d/bogus-nxdomain.conf
|
||||
cat "${CACHE_FOLDER}/accelerated-domains.china.conf" "${CACHE_FOLDER}/apple.china.conf" "${CACHE_FOLDER}/google.china.conf" | sed -e "s|server=/||g" -e "s|/114.114.114.114||g" | grep -v "^#" | grep -v "^$" > /etc/smartdns/domain-set/cn.conf
|
||||
Loading…
Add table
Add a link
Reference in a new issue