From: Philipp Spitzer Date: Tue, 8 Apr 2014 20:07:47 +0000 (+0200) Subject: Removed unused code. X-Git-Tag: 0.0.2~7 X-Git-Url: https://git.toastfreeware.priv.at/toast/tdyndns.git/commitdiff_plain/9c3d6c2d2d619970710c2a99fb9e1dad94d54bc2 Removed unused code. --- diff --git a/cgi-bin/dyndns.py b/cgi-bin/dyndns.py index 1a074b2..c5f0e4f 100755 --- a/cgi-bin/dyndns.py +++ b/cgi-bin/dyndns.py @@ -156,12 +156,6 @@ try: ip = ipaddr.IPAddress(myip) # throws an exception if the IP address is not valid except ValueError: raise MyipInvalid() - if isinstance(ip, ipaddr.IPv4Address): - iptype = 'A' - elif isinstance(ip, ipaddr.IPv6Address): - iptype = 'AAAA' - else: - raise MyipInvalid() # should never happen # update bind if offline: