From 93fb2484c19108a00a77e9875ba276c12ffe4175 Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Wed, 11 Jan 2023 00:35:21 +0100 Subject: [PATCH] v0.2.4 --- rfc1924/__init__.py | 2 +- rfc1924/rfc1924.py | 4 ++-- setup.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/rfc1924/__init__.py b/rfc1924/__init__.py index 7e0f0f4..11938c3 100644 --- a/rfc1924/__init__.py +++ b/rfc1924/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.2.3" +__version__ = "0.2.4" __author__ = "0xflotus" from .rfc1924 import encode, decode, savings diff --git a/rfc1924/rfc1924.py b/rfc1924/rfc1924.py index b016b74..511156e 100644 --- a/rfc1924/rfc1924.py +++ b/rfc1924/rfc1924.py @@ -105,10 +105,10 @@ def decode(encoded_ipv6): return str( IPv6Address( reduce( - lambda sum, vec: sum + vec[0] * 0x55 ** (0o23 - vec[1]), + lambda sum, vec: sum + vec[0] * 0x55 ** vec[1], map( lambda vec: (lookup_table.index(vec[0]), vec[1]), - zip(encoded_ipv6, range(0o24)), + zip(encoded_ipv6, range(0o23, -1, -1)), ), 0, ) diff --git a/setup.py b/setup.py index de27d09..f87ce49 100644 --- a/setup.py +++ b/setup.py @@ -6,7 +6,7 @@ setup( name="rfc1924", - version="0.2.3", + version="0.2.4", description="Implementation of RFC 1924", long_description=README, long_description_content_type="text/markdown",