From: Stefan Schantl Date: Wed, 15 Jan 2020 16:27:01 +0000 (+0100) Subject: Decode external IP address to string X-Git-Tag: 013~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a70b74304a7d26e483dfe4156afaedcd82f8864;p=ddns.git Decode external IP address to string Signed-off-by: Stefan Schantl --- diff --git a/src/ddns/system.py b/src/ddns/system.py index 299ed07..c2dc430 100644 --- a/src/ddns/system.py +++ b/src/ddns/system.py @@ -105,11 +105,11 @@ class DDNSSystem(object): if not response.code == 200: return - match = re.search(r"^Your IP address is: (.*)$", response.read()) + match = re.search(b"^Your IP address is: (.*)$", response.read()) if match is None: return - return match.group(1) + return match.group(1).decode() def guess_external_ip_address(self, family, **kwargs): if family == "ipv6":