You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
defcheck_ips(self, data):
"""Check data for IP addresses. Results stored in ``self.ips``. Args: data (str): String to search for IP address content. Returns: None """foripv4inIPv4Pattern.findall(data):
ifipv4notinself.ips:
self.ips[ipv4] =0self.ips[ipv4] +=1foripv6inIPv6Pattern.findall(data):
ifstrip_ipv6(ipv6) notinself.ips:
self.ips[strip_ipv6(ipv6)] =0self.ips[strip_ipv6(ipv6)] +=1
The text was updated successfully, but these errors were encountered:
Create a base class for the parsers.
Should contain
check_ips()
The text was updated successfully, but these errors were encountered: