Skip to content

Commit

Permalink
fix(fw4/post): fix bypass cn traffic in custom routing mode
Browse files Browse the repository at this point in the history
Fixes: #54
  • Loading branch information
1715173329 authored Dec 15, 2023
1 parent 330ce5e commit 2dfddbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/etc/homeproxy/scripts/firewall_post.ut
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ chain homeproxy_mangle_output {
{% if (ipv6_support === '1'): %}
ip6 daddr != @homeproxy_gfw_list_v6 counter return
{% endif /* ipv6_support */ %}
{% elif (routing_mode === 'bypass_mainland_china'): %}
{% elif (routing_mode === 'bypass_mainland_china' || bypass_cn_traffic === '1'): %}
ip daddr @homeproxy_mainland_addr_v4 counter return
{% if (ipv6_support === '1'): %}
ip6 daddr @homeproxy_mainland_addr_v6 counter return
Expand Down

0 comments on commit 2dfddbe

Please sign in to comment.