zfl9 / ss-tproxy

搭建 SS/SSR/V2Ray/Trojan/Socks5 透明代理的 Shell 脚本

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wiki dnsr方案 自定义 DNS 中chinadns-ng 的参数是不是有问题?

xtccc opened this issue · comments

这个是原始的配置,我测试了无法启动

报错
tail: /var/log/chinadns.log: 文件已截断[opt_parse] non-option argument: sstp_white,sstp_white6

    elif is_chnroute_mode; then # 白名单 (ignlist,chnlist,chnroute) + 黑名单 (gfwlist)
        pid_chinadns=$(
            trap "" CHLD # 避免僵尸进程
            chinadns-ng $chinadns_arg \
            -m chnlist.txt,<(list_ext_domain ignlist.ext) \
            -g gfwlist.txt,<(list_ext_domain gfwlist.ext) \
            -a sstp_white,sstp_white6 \
            -A sstp_black,sstp_black6 \
            -4 sstp_white -6 sstp_white6 \
            </dev/null &>/var/log/chinadns.log &
            echo $!

我根据现有的ss-tproxy脚本中的参数, 去除了-a 后面的sstp_white,sstp_white6 就可以启动了
是不是原页面的参数没有被更新? 我改了以后是这样的

 elif is_chnroute_mode; then # 白名单 (ignlist,chnlist,chnroute) + 黑名单 (gfwlist)
        pid_chinadns=$(
            trap "" CHLD # 避免僵尸进程
            chinadns-ng $chinadns_arg \
            -m chnlist.txt,<(list_ext_domain ignlist.ext) \
            -g gfwlist.txt,<(list_ext_domain gfwlist.ext) \
            -a \
            -A sstp_black,sstp_black6 \
            -4 sstp_white -6 sstp_white6 \
            </dev/null &>/var/log/chinadns.log &
            echo $!
 chinadns-ng  --version
ChinaDNS-NG 2023.05.08 <https://github.com/zfl9/chinadns-ng>

发现chinadns-ng不是最新版本,我更新了一下
最新版使用 -a sstp_white,sstp_white6 \ 是可以的
chinadns-ng --version
ChinaDNS-NG 2023.06.01 https://github.com/zfl9/chinadns-ng