Skip to content

Commit

Permalink
config mosdns
Browse files Browse the repository at this point in the history
  • Loading branch information
ffuqiangg committed Jan 27, 2024
1 parent 1d9b002 commit 7187ae3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions patch/addition-trans-zh/files/zzz-default-settings
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ uci set upnpd.config.force_forwarding='1'
#uci del upnpd.config.stun_host
uci commit upnpd

#MosDNS广告源
uci set mosdns.config.adblock='1'
uci add_list mosdns.config.ad_source='https://github.com/QiuSimons/openwrt-mos/raw/master/dat/serverlist.txt'
uci commit mosdns

#定时清理
(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 -

Expand Down

0 comments on commit 7187ae3

Please sign in to comment.