isProtectedConnection method

bool isProtectedConnection(
  1. TransportConn conn
)

Implementation

bool isProtectedConnection(TransportConn conn) {
  // Get peer ID from connection and check if it's protected
  final peerId = conn.remotePeer;
  final protections = _protections[peerId];
  return protections != null && protections.isNotEmpty;
}