MCPcopy Create free account
hub / github.com/PierreGode/Ragnar / get_scan_subnets_log

Function get_scan_subnets_log

webapp_modern.py:5247–5254  ·  view source on GitHub ↗

Return the in-memory subnet scan log (newest last).

()

Source from the content-addressed store, hash-verified

5245 try:
5246 limit = max(1, min(200, int(shared_data.config.get('mesh_findings_limit', 40))))
5247 except (TypeError, ValueError):
5248 limit = 40
5249 port = _mesh_node_port()
5250 fresh = {}
5251 for peer in peers:
5252 if not (health.get(peer['id']) or {}).get('reachable'):
5253 continue
5254 payload = mesh_manager.poll_peer(peer, port=port, timeout=timeout,
5255 path=f'/api/mesh/findings?limit={limit}')
5256 if payload.get('reachable'):
5257 fresh[peer['id']] = {

Callers

nothing calls this directly

Calls 2

get_subnet_scan_logMethod · 0.80
errorMethod · 0.80

Tested by

no test coverage detected