def protocols(self):
return self.INFO.get("protocols")
+ @property
+ def token(self):
+ """
+ Fast access to the token.
+ """
+ return self.get("token")
+
def __call__(self, force=False):
if force:
logger.info(_("Updating %s forced") % self.hostname)
# https://dns.lightningwirelabs.com/knowledge-base/api/ddns
url = "https://dns.lightningwirelabs.com/update"
- @property
- def token(self):
- """
- Fast access to the token.
- """
- return self.get("token")
-
def update(self):
data = {
"hostname" : self.hostname,