Browse Source

feat: `ipv6-disabled` option for dnsproxy ref issue #2

dev
Dnomd343 2 years ago
parent
commit
92265e7acf
  1. 5
      src/applet/dnsproxy.c

5
src/applet/dnsproxy.c

@ -96,8 +96,9 @@ char* dnsproxy_config(dnsproxy *info) { // generate json configure from dnsproxy
if (info->optimistic) {
cJSON_AddTrueToObject(config, "cache-optimistic"); // cache-optimistic --(default)--> `false`
}
// TODO: load ipv6 option
log_warn("TODO: load ipv6 option");
if (!info->ipv6) {
cJSON_AddTrueToObject(config, "ipv6-disabled"); // ipv6-disabled --(default)--> `false`
}
cJSON *port = cJSON_CreateArray();
cJSON_AddItemToArray(port, cJSON_CreateNumber(info->port));

Loading…
Cancel
Save