mirror of
https://github.com/pi-hole/dnsmasq.git
synced 2025-12-19 10:18:25 +00:00
Fix --rev-server option. It was broken in 1db9943c68 when resolving upstream servers by name was extended to --rev-server without accounting for the fact that re-using one and the same upstream server for each of the x.y.z.in-addr.arpa is actually a wanted feature
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
committed by
Simon Kelley
parent
7d6b68c5d7
commit
997982f78b
@@ -1159,6 +1159,9 @@ static char *domain_rev4(int from_file, char *server, struct in_addr *addr4, int
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Always reset server as valid here, so we can add the same upstream
|
||||
server address multiple times for each x.y.z.in-addr.arpa */
|
||||
sdetails.valid = 1;
|
||||
while (parse_server_next(&sdetails))
|
||||
{
|
||||
if ((string = parse_server_addr(&sdetails)))
|
||||
@@ -1244,6 +1247,9 @@ static char *domain_rev6(int from_file, char *server, struct in6_addr *addr6, in
|
||||
}
|
||||
else
|
||||
{
|
||||
/* Always reset server as valid here, so we can add the same upstream
|
||||
server address multiple times for each x.y.z.ip6.arpa */
|
||||
sdetails.valid = 1;
|
||||
while (parse_server_next(&sdetails))
|
||||
{
|
||||
if ((string = parse_server_addr(&sdetails)))
|
||||
|
||||
Reference in New Issue
Block a user