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

Function _tcp_reachable

network_diagnostics.py:1124–1129  ·  view source on GitHub ↗
(host, port, timeout=4)

Source from the content-addressed store, hash-verified

1122 for line in f:
1123 line = line.strip()
1124 if not line or line.startswith('#'):
1125 continue
1126 parts = re.split(r'\s+', line, maxsplit=1)
1127 if len(parts) != 2:
1128 continue
1129 pfx = re.sub(r'[^0-9a-fA-F]', '', parts[0]).lower()
1130 if len(pfx) < 6:
1131 continue
1132 pfx = pfx[:6]

Callers 1

do_dns_doctorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected