Skip to content

Commit

Permalink
fix(init): fix filter non-china v6addr with new chinadns-ng
Browse files Browse the repository at this point in the history
  • Loading branch information
1715173329 authored Jul 23, 2024
1 parent 23d7e53 commit 30c4293
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion root/etc/init.d/homeproxy
Original file line number Diff line number Diff line change
Expand Up @@ -194,13 +194,15 @@ start_service() {
procd_append_param command --ipset-name6 "inet@fw4@homeproxy_mainland_addr_v6"
procd_append_param command --chnlist-file "$HP_DIR/resources/china_list.txt"
procd_append_param command --gfwlist-file "$HP_DIR/resources/gfw_list.txt"
[ "$ipv6_support" -eq "1" ] || procd_append_param command --no-ipv6=tC
procd_append_param command --reuse-port

if chinadns-ng --version | grep -q "target:"; then
procd_append_param command --cache 10000
procd_append_param command --cache-stale 3600
procd_append_param command --verdict-cache 10000
[ "$ipv6_support" -eq "1" ] || procd_append_param command --no-ipv6=ip:non_china
else
[ "$ipv6_support" -eq "1" ] || procd_append_param command --no-ipv6=tC
fi

if [ -x "/sbin/ujail" ]; then
Expand Down

0 comments on commit 30c4293

Please sign in to comment.