isPeerProtected method
Check if a peer is protected (by PeerId directly) Used by Swarm to check protection before closing connections
Implementation
bool isPeerProtected(PeerId peerId) {
final protections = _protections[peerId];
return protections != null && protections.isNotEmpty;
}