Skip to content

Commit

Permalink
rc: fix DNSFilter rules handling for IPV6 on HND models
Browse files Browse the repository at this point in the history
  • Loading branch information
RMerl committed Aug 6, 2021
1 parent 639446c commit beda779
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions release/src/router/rc/dnsfilter.c
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,13 @@ void dnsfilter_setup_dnsmasq(FILE *fp) {
}

/* DNS server per client */
#ifdef HND_ROUTER
nv = nvp = malloc(255 * 6 + 1);
if (nv) nvram_split_get("dnsfilter_rulelist", nv, 255 * 6 + 1, 5);
#else
nv = nvp = strdup(nvram_safe_get("dnsfilter_rulelist"));
#endif

while (nv && (b = strsep(&nvp, "<")) != NULL) {
if (vstrsep(b, ">", &name, &mac, &mode, &enable) < 3)
continue;
Expand Down

0 comments on commit beda779

Please sign in to comment.