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-smartdns 的conf.d 增加配置文件后多余了一对''号 #236

Open
GreatMichaelLee opened this issue Jul 12, 2023 · 1 comment

Comments

@GreatMichaelLee
Copy link

在高级设置->包含配置文件里,加入配置文件名后,最终在/var/etc/smartdns/smartdns.conf里生成的是这样的

conf-file ‘/etc/smartdns/smartdns-domains.china.conf’,

这样的多一个‘’ smartdns是识别不了的,要去掉引号,这个引号的加入可以在/etc/init.d/smartdns的 line 465找到。

conf_append_conf_files()
{
        local conf_file="$1"

        if [ "$1" != "${1#/}" ]; then
                fullpath="$1"
        else
                fullpath="$SMARTDNS_CONF_DOWNLOAD_DIR/$conf_file"
        fi

        [ -f "$fullpath" ] && {
                conf_append "conf-file" "'$fullpath'"
        }
}
@lwb1978
Copy link

lwb1978 commented Oct 5, 2023

帮你反馈到插件作者那边去了:
pymumu/smartdns#1518

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