From: Michael Orlitzky Date: Thu, 22 Sep 2022 01:25:59 +0000 (-0400) Subject: djbdns/common.py: assume IPv6 if an address isn't IPv4. X-Git-Tag: 0.0.1~10 X-Git-Url: https://gitweb.michael.orlitzky.com/?a=commitdiff_plain;h=d9f3e6ef07662990538a9a6fb46f8120ffc37ee5;hp=d9f3e6ef07662990538a9a6fb46f8120ffc37ee5;p=djbdns-logparse.git djbdns/common.py: assume IPv6 if an address isn't IPv4. In other words, probably crash if convert_ip() is fed garbage. That's OK. We could check the length of the hex string and raise a ValueError if it isn't 8 or 32, but we might be solving problems that don't exist. ---