Commit 4ce69004 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Only reverse resolve for the proper protocol family

parent e543d8ad
Pipeline #2530 passed with stage
in 9 minutes and 18 seconds
......@@ -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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment