Skip to content

Commit

Permalink
feat(openclash): enable dns fallback_filter by default to against DNS…
Browse files Browse the repository at this point in the history
… pollution
  • Loading branch information
EkkoG committed Oct 15, 2024
1 parent d5139f8 commit a1d20ad
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions modules/openclash/files/etc/uci-defaults/90-openclash
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,23 @@ set openclash.@dns_servers[-1].type='udp'
set openclash.@dns_servers[-1].enabled='1'
set openclash.@dns_servers[-1].ip='119.29.29.29'

add openclash dns_servers
set openclash.@dns_servers[-1]=dns_servers
set openclash.@dns_servers[-1].enabled='1'
set openclash.@dns_servers[-1].group='fallback'
set openclash.@dns_servers[-1].type='tcp'
set openclash.@dns_servers[-1].ip='8.8.8.8'
set openclash.@dns_servers[-1].interface='Disable'
set openclash.@dns_servers[-1].node_resolve='0'
set openclash.@dns_servers[-1].specific_group='Disable'

add openclash config_subscribe
set openclash.@config_subscribe[-1]=config_subscribe
set openclash.@config_subscribe[-1].enabled='1'
set openclash.@config_subscribe[-1].address='$CLASH_CONFIG_URL'
set openclash.@config_subscribe[-1].sub_convert='0'

set openclash.config.custom_fallback_filter='1'
set openclash.config.ipv6_enable='1'
set openclash.config.china_ip6_route='1'
set openclash.config.china_ip_route='1'
Expand Down

0 comments on commit a1d20ad

Please sign in to comment.