Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 5dd67f7d authored by Randy Sommerfeld's avatar Randy Sommerfeld

Drop DNS replies for closed connections

parent 4d018183
Pipeline #2407 passed with stage
in 9 minutes and 17 seconds
......@@ -88,6 +88,10 @@ function Unregistered_Client(id,socket) {
this.dns_pending = false;
} else {
this.reverse_resolver = function(resp) {
if (!this.socket.is_connected) {
log(LOG_DEBUG,format("[UNREG] RDNS reply discarded because socket closed."));
return false;
}
if (!this.dns_pending) {
log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous RDNS reply."));
return false;
......@@ -108,6 +112,10 @@ function Unregistered_Client(id,socket) {
return false;
}
this.forward_resolver = function(resp) {
if (!this.socket.is_connected) {
log(LOG_DEBUG,format("[UNREG] DNS reply discarded because socket closed."));
return false;
}
if (!this.dns_pending) {
log(LOG_DEBUG,format("[UNREG] WARNING: Received extraneous DNS reply."));
return 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