MCPcopy
hub / github.com/bugy/script-server / _resolve_hostname

Function _resolve_hostname

src/utils/audit_utils.py:48–54  ·  view source on GitHub ↗
(ip)

Source from the content-addressed store, hash-verified

46
47
48def _resolve_hostname(ip):
49 try:
50 (hostname, _, _) = socket.gethostbyaddr(ip)
51 return hostname
52 except:
53 LOGGER.warning('Could not get hostname for ' + ip)
54 return None
55
56
57def get_audit_name(all_audit_names):

Callers 1

get_all_audit_namesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected