-
Notifications
You must be signed in to change notification settings - Fork 227
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
refactor/optimize: remove dead code #411
refactor/optimize: remove dead code #411
Conversation
该PR导致了一个额外的问题:无法解析任何域名 日志如下time="Jan 05 00:48:07" level=warning msg="handlePkt: listen udp 192.168.1.1:53: bind: address already in use"
time="Jan 05 00:48:08" level=warning msg="handlePkt: failed to write cached DNS resp: listen udp 192.168.1.1:53: bind: address already in use" |
@umlka 是不是你在dae运行的主机上同时还有一个进程绑定*:53 |
安装在openwrt上面,另一个绑定的进程是dnsmasq,0.5.0版本是正常的,我路由规则添加了 |
更改dnsmasq的监听端口为非53端口后可以正常使用了,但是这样会出现一些异常情况,比如路由器(通过PPPoE拨号上网, dae无法代理)本机上的DNS解析全部失效以及三星手机连不上路由器Wi-Fi(提示Wi-Fi无网络) |
@jschwinger233 Any updates on this one yet? |
With daeuniverse#383, dae no longer encap UDP, leaving this decap UDP logic obsolete. Removal of lan_egress also ends up with several helper functions unused, this commit deletes them as well. As for scenario of LAN==WAN, after this commit only wan_egress will be attached on LAN. Wan_egress therefore will pass all traffic sent from dae because pid_is_control_plane() gives true, so it looks like no concerns.
Also no longer necessary.
6b6a156
to
21bd374
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Let's move on!
@jschwinger233 @mzz2017 Shall we move on? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧪 Since the PR has been fully tested, please consider merging it.
Background
As #383 got merged, some logic seems obsolete and safe to remove.
This PR removes lan_egress bpf, followed by removal of lanWan flag at control plane.
Checklist
Full Changelogs
Issue Reference
Closes #[issue number]
Test Result