From 9c3d6c2d2d619970710c2a99fb9e1dad94d54bc2 Mon Sep 17 00:00:00 2001 From: Philipp Spitzer Date: Tue, 8 Apr 2014 22:07:47 +0200 Subject: [PATCH] Removed unused code. --- cgi-bin/dyndns.py | 6 ------ 1 file changed, 6 deletions(-) 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: -- 2.39.5