Skip to content
Snippets Groups Projects
Commit 4ce69004 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Only reverse resolve for the proper protocol family

parent e543d8ad
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #2530 passed
......@@ -104,7 +104,11 @@ function Unregistered_Client(id,socket) {
} else {
this.hostname = resp[0];
log(LOG_DEBUG,format("[UNREG] Resolving hostname: %s", resp[0]));
DNS_Resolver.resolve(resp[0], this.forward_resolver, this);
if (this.socket.family == PF_INET6) {
DNS_Resolver.resolveIPv6(resp[0], this.forward_resolver, this);
} else {
DNS_Resolver.resolveIPv4(resp[0], this.forward_resolver, this);
}
return true;
}
this.dns_pending = false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment