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

Only reverse resolve for the proper protocol family

parent 8ca094db
Branches
Tags
No related merge requests found
......@@ -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