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

Function zone_compare

python3_cron_scripts/zgrab_http_ip.py:116–123  ·  view source on GitHub ↗

Determines whether value is in a known zone

(value, zones)

Source from the content-addressed store, hash-verified

114
115
116def zone_compare(value, zones):
117 """
118 Determines whether value is in a known zone
119 """
120 for zone in zones:
121 if value.endswith("." + zone) or value == zone:
122 return zone
123 return None
124
125
126def check_in_zone(entry, zones):

Callers 1

check_in_zoneFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected