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

luci-app-adguardhome与adguardhome配置文件大小写不匹配 #493

Open
wang1zhen opened this issue Sep 5, 2024 · 3 comments
Open

luci-app-adguardhome与adguardhome配置文件大小写不匹配 #493

wang1zhen opened this issue Sep 5, 2024 · 3 comments

Comments

@wang1zhen
Copy link

当前版本,编译openwrt后会在/etc目录下产生两个adguardhome.yaml配置文件(大小写不同)
image
其中,=AdGuardHome.yaml=是luci界面下手动设置的对象,同时也是实际生效的配置文件。但同时,=adguardhome.yaml=会在通过网页管理时生成,但实际使用时会被覆盖。

/etc/adguardhome.yaml

/etc/AdGuardHome.yaml

可以看到,这两处Makefile间命名没有统一,因此导致了上述的问题。

鉴于openwrt自己的adguardhome包中也使用的是小写,能否将luci-app-adguardhome的配置文件,统一使用小写,来避免重复与混淆?

@kenzok8
Copy link
Owner

kenzok8 commented Sep 5, 2024

收到,已去除luci的AdGuardHome.yaml

@wang1zhen
Copy link
Author

似乎编译后仍然存在AdGuardHome.yaml?

这是一个我刚编译完固件的内容:

image

我理解的逻辑应该是,通过web页面配置adguardhome的话,会生成/etc/adguardhome.yaml文件,但实际读取使用的是/etc/AdguardHome.yaml。另外这个默认的/etc/AdguardHome.yaml在同步了你的修改后依然存在,好像也比较奇怪?

@smdx
Copy link

smdx commented Sep 20, 2024

@kenzok8
去除luci的AdGuardHome.yaml后遇到问题了

ImmortalWrt 21.02-SNAPSHOT r20111-fc9fe90e5a / LuCI openwrt-21.02 branch git-23.098.38725-847bd6b

基础设置:
2024-09-21_000351

手动设置:
/usr/lib/lua/luci/model/cbi/AdGuardHome/manual.lua:70: bad argument #1 to 'access' (string expected, got nil)
stack traceback:
[C]: in function 'access'
/usr/lib/lua/luci/model/cbi/AdGuardHome/manual.lua:70: in function 'func'
/usr/lib/lua/luci/cbi.lua:66: in function 'load'
/usr/lib/lua/luci/dispatcher.lua:1353: in function '_cbi'
/usr/lib/lua/luci/dispatcher.lua:1024: in function 'dispatch'
/usr/lib/lua/luci/dispatcher.lua:479: in function </usr/lib/lua/luci/dispatcher.lua:478>

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

No branches or pull requests

3 participants