Giter Club home page Giter Club logo

Comments (5)

PikuZheng avatar PikuZheng commented on September 23, 2024

代码仍存在group的处理啊

smartdns/src/dns_conf.c

Lines 4897 to 4908 in 07c1382

for (int i = 2; i < argc - 1; i++) {
if (strncmp(argv[i], "-g", sizeof("-g")) == 0 || strncmp(argv[i], "--group", sizeof("--group")) == 0 ||
strncmp(argv[i], "-group", sizeof("-group")) == 0) {
safe_strncpy(group_name, argv[i + 1], DNS_MAX_CONF_CNAME_LEN);
group = group_name;
break;
}
}
if (group != NULL) {
_config_current_group_push(group);
}

from smartdns.

Archeb avatar Archeb commented on September 23, 2024

代码仍存在group的处理啊

smartdns/src/dns_conf.c

Lines 4897 to 4908 in 07c1382

for (int i = 2; i < argc - 1; i++) {
if (strncmp(argv[i], "-g", sizeof("-g")) == 0 || strncmp(argv[i], "--group", sizeof("--group")) == 0 ||
strncmp(argv[i], "-group", sizeof("-group")) == 0) {
safe_strncpy(group_name, argv[i + 1], DNS_MAX_CONF_CNAME_LEN);
group = group_name;
break;
}
}
if (group != NULL) {
_config_current_group_push(group);
}

😂 我的意思是不管咋样这两页文档里面肯定有一个是多了或者缺了参数的,至少要让他们同步。

另外我之前一直用的 domain-rules /example.com/ -g china 格式,现在版本下全部都变default分组了,具体是为啥我也没去debug代码。

from smartdns.

PikuZheng avatar PikuZheng commented on September 23, 2024

我怀疑你说的是nameserver组。group是给配置文件分组用的。

from smartdns.

PikuZheng avatar PikuZheng commented on September 23, 2024

新版本采用 group-begin 和 group-end 给配置分组。但是配置上还是会兼容旧的写法,domain-rules 的 group应该是好用的

from smartdns.

Archeb avatar Archeb commented on September 23, 2024

我怀疑你说的是nameserver组。group是给配置文件分组用的。

我又去认真看了下,确实是我理解有误,我是想给某个域名指定用的nameserver组,应该用nameserver参数,现在没有问题了,感谢。

from smartdns.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.