]> git.ipfire.org Git - people/ms/ddns.git/blobdiff - src/ddns/providers.py
namecheap: Fix undeclared variable.
[people/ms/ddns.git] / src / ddns / providers.py
index e708fd648139b552a0ecc93aa8c18d771ae06ef7..6ac556444553fbf0d6e8b23854fe228ad6c81fc5 100644 (file)
@@ -1173,8 +1173,11 @@ class DDNSProviderNamecheap(DDNSResponseParserXML, DDNSProvider):
                # Namecheap requires the hostname splitted into a host and domain part.
                host, domain = self.hostname.split(".", 1)
 
+               # Get and store curent IP address.
+               address = self.get_address(proto)
+
                data = {
-                       "ip"       : self.get_address(proto),
+                       "ip"       : address,
                        "password" : self.password,
                        "host"     : host,
                        "domain"   : domain