Skip to content

Commit 7187ae3

Browse files
committed
config mosdns
1 parent 1d9b002 commit 7187ae3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

patch/addition-trans-zh/files/zzz-default-settings

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ uci set upnpd.config.force_forwarding='1'
5252
#uci del upnpd.config.stun_host
5353
uci commit upnpd
5454

55+
#MosDNS广告源
56+
uci set mosdns.config.adblock='1'
57+
uci add_list mosdns.config.ad_source='https://github.com/QiuSimons/openwrt-mos/raw/master/dat/serverlist.txt'
58+
uci commit mosdns
59+
5560
#定时清理
5661
(crontab -l | sed '/find \/tmp/d'; echo "0 0 1 * * find /tmp -type f \( -name \"*.log\" -o -name \"*.txt\" \) -exec sh -c 'rm {} && touch {}' \;") | sed '/^$/d' | crontab -
5762

0 commit comments

Comments
 (0)