We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Adgurad Home :v0.107.51
正常端口判断应该是 dns: bind_hosts: - 0.0.0.0 port: 1745
1745
实际识别到了 http: pprof: port: 6060 enabled: false 6060
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
看了看代码 应该是读的dns下的port 但是实际结果是读的第一条port 很莫名不知道什么原因
base.lua local port=luci.sys.exec("awk '/ port:/{printf($2);exit;}' "..configpath.." 2>nul") 改成 local port=luci.sys.exec("awk 'BEGIN{dns=0;}{if($1=="dns:"){dns=1;}if(dns==1){if($1=="port:"){printf($2);exit;}}}' "..configpath.." 2>nul") 不熟悉awk 只能搞成这破玩意了 老是Unexpected token 没有编辑器校验就死亡的废材 坐等有人编译打个包帮忙一下
No branches or pull requests
问题详细信息
Adgurad Home :v0.107.51
*
OpenWrt
内核版本
6.1.15
希望的执行结果
正常端口判断应该是
dns:
bind_hosts:
- 0.0.0.0
port: 1745
1745
实际的执行结果
实际识别到了
http:
pprof:
port: 6060
enabled: false
6060
The text was updated successfully, but these errors were encountered: