• Olav Morken's avatar
    fwb-sync: Fix incompatibility with ipaddress module · e4b5ab67
    Olav Morken authored
    The ipaddress-module expects either a unicode string or a bytes
    object. This patch updates fwb-sync to convert all addresses to
    unicode strings before passing them to ipaddress.
    This patch fixes the following error:
    > ipaddress.AddressValueError: '' (len 12 != 4) is not
    > permitted as an IPv4 address. Did you pass in a bytes (str in
    > Python 2) instead of a unicode object?