more punish fixes

This commit is contained in:
John Smith
2023-07-03 16:42:49 -04:00
parent ffc54f482e
commit 6de2ccb1f9
3 changed files with 16 additions and 4 deletions

View File

@@ -118,8 +118,8 @@ impl Network {
return;
}
};
let address_filter = self.network_manager().address_filter();
// Check to see if it is punished
let address_filter = self.network_manager().address_filter();
if address_filter.is_punished(peer_addr.ip()) {
return;
}