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

建议自定义设置conf-file 文件不存在时可跳过 #1724

Open
lwb1978 opened this issue Apr 18, 2024 · 3 comments
Open

建议自定义设置conf-file 文件不存在时可跳过 #1724

lwb1978 opened this issue Apr 18, 2024 · 3 comments

Comments

@lwb1978
Copy link

lwb1978 commented Apr 18, 2024

目前自定义设置里配置conf-file时,如果文件不存在会导致smartdns无法启动,建议修改成文件不存在时直接跳过并继续启动smartdns,以确保基础功能正常工作。

@pymumu
Copy link
Owner

pymumu commented Apr 18, 2024

启动失败会有日志输出到openwrt的syslog,界面也会有提示。

@lwb1978
Copy link
Author

lwb1978 commented Apr 18, 2024

启动失败会有日志输出到openwrt的syslog,界面也会有提示。

在log看到了conf-file 的文件不存在的提示,界面显示smartdns未运行,这时如果在自定义设置里删除相关conf-file设置就正常运行了,我的意思是想能否做个容错,当conf-file的文件不存在时也能正常运行?

@pymumu
Copy link
Owner

pymumu commented Apr 18, 2024

之前是忽略错误,只打印log的,但后面会让人误以为smartdns功能失效。
所以,改成了启动失败。要用户解决后再启动。

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

2 participants