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

Method __init__

actions/scanning.py:1352–1355  ·  view source on GitHub ↗
(self, ip_hostname_list)

Source from the content-addressed store, hash-verified

1350 try:
1351 if netifaces is None:
1352 return info
1353 gws = netifaces.gateways()
1354 gw_tuple = gws.get("default", {}).get(netifaces.AF_INET)
1355 if not gw_tuple:
1356 return info
1357 info["gateway_ip"] = gw_tuple[0]
1358 info["interface"] = gw_tuple[1]

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected