]> gitweb.michael.orlitzky.com - djbdns-logparse.git/commit
djbdns/common.py: assume IPv6 if an address isn't IPv4.
authorMichael Orlitzky <michael@orlitzky.com>
Thu, 22 Sep 2022 01:25:59 +0000 (21:25 -0400)
committerMichael Orlitzky <michael@orlitzky.com>
Thu, 22 Sep 2022 01:25:59 +0000 (21:25 -0400)
commitd9f3e6ef07662990538a9a6fb46f8120ffc37ee5
tree8e4bc9971d3b96a4019a9caa72e90892b61df29d
parentc965f2fea1788a7faba2c67a4f05c27d5c34373b
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.
djbdns/common.py