MCPcopy Create free account
hub / github.com/adobe/Marinus / check_ip_context

Function check_ip_context

python3_cron_scripts/zgrab_http_ip.py:103–113  ·  view source on GitHub ↗

Check for matching ip_context records

(ip, ip_context)

Source from the content-addressed store, hash-verified

101
102
103def check_ip_context(ip, ip_context):
104 """
105 Check for matching ip_context records
106 """
107 matches = []
108
109 for entry in ip_context:
110 if entry["ip"] == ip:
111 matches.append(entry)
112
113 return matches
114
115
116def zone_compare(value, zones):

Callers 1

insert_resultFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected