Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do not hijack dns outside the ac list #3175

Merged
merged 3 commits into from Apr 9, 2023
Merged

Conversation

kooritea
Copy link
Contributor

@kooritea kooritea commented Apr 8, 2023

不需要劫持白名单外和黑名单内的设备的dns

nftables的部分我没改。。。那边不会写

改动的部分只有这两个判断中添加tcp53、udp53劫持那两句,diff会显示这么多是因为我把#lan_ac创建黑白名单那几段挪到创建劫持dns规则的前面去了。

if [ "$enable_redirect_dns" -eq 1 ]; then

elif [ "$enable_redirect_dns" -eq 2 ]; then

fi

@vernesong vernesong merged commit 1dba146 into vernesong:dev Apr 9, 2023
zheshifandian pushed a commit to zheshifandian/OpenClash that referenced this pull request Apr 15, 2023
* Do not hijack dns outside the ac list

* add nft rules and delete repeat rules

* fix: Invalid match name

---------

Co-authored-by: vernesong <42875168+vernesong@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants