Updated dependencies, fixed connection drop for banned nodes.

This commit is contained in:
Revertron
2022-06-29 19:02:11 +02:00
parent 7bd7fefc12
commit a13c824f7d
3 changed files with 21 additions and 17 deletions
+4
View File
@@ -118,6 +118,10 @@ impl Network {
if self.peers.is_ignored(&address.ip()) {
debug!("Ignoring connection from banned {:?}", &address.ip());
stream.shutdown(Shutdown::Both).unwrap_or_else(|e| {
warn!("Error in shutdown, {}", e);
});
let _ = poll.registry().reregister(&mut server, SERVER, Interest::READABLE);
continue;
}