pymumu / smartdns

A local DNS server to obtain the fastest website IP for the best Internet experience, support DoT, DoH. 一个本地DNS服务器,获取最快的网站IP,获得最佳上网体验,支持DoH,DoT。
https://pymumu.github.io/smartdns/
GNU General Public License v3.0
7.92k stars 1.05k forks source link

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

Open lwb1978 opened 2 months ago

lwb1978 commented 2 months ago

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

pymumu commented 2 months ago

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

lwb1978 commented 2 months ago

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

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

pymumu commented 2 months ago

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