dns-server: fix prefetch cache timeout issue

This commit is contained in:
Nick Peng
2023-11-07 22:09:34 +08:00
parent 7bfb4e070a
commit 73c96cf932
3 changed files with 53 additions and 32 deletions

View File

@@ -1634,6 +1634,9 @@ static int _conf_domain_rule_address(char *domain, const char *domain_address)
goto errout;
}
if (ptr) {
ptr++;
}
continue;
} else if (*(field) == '-') {
if (strncmp(field, "-4", sizeof("-4")) == 0) {
@@ -1651,6 +1654,9 @@ static int _conf_domain_rule_address(char *domain, const char *domain_address)
goto errout;
}
if (ptr) {
ptr++;
}
continue;
}