Fixed banning process.

This commit is contained in:
Revertron
2021-04-19 23:36:08 +02:00
parent 068ff395f7
commit e0425f46dc
3 changed files with 10 additions and 3 deletions
+5
View File
@@ -98,6 +98,11 @@ impl Network {
}
}
if peers.is_ignored(&address.ip()) {
debug!("Ignoring connection from banned {:?}", &address.ip());
continue;
}
if yggdrasil_only && !is_yggdrasil(&address.ip()) {
debug!("Dropping connection from Internet");
stream.shutdown(Shutdown::Both).unwrap_or_else(|e|{ warn!("Error in shutdown, {}", e); });