mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/ddclient - handle empty response (req.text) in dyndns2, for https://github.com/opnsense/plugins/pull/3618
This commit is contained in:
@@ -105,7 +105,7 @@ class DynDNS2(BaseAccount):
|
||||
"Account %s set new ip %s [%s]" % (self.description, self.current_address, req.text.strip())
|
||||
)
|
||||
|
||||
self.update_state(address=self.current_address, status=req.text.split()[0])
|
||||
self.update_state(address=self.current_address, status=req.text.split()[0] if req.text else '')
|
||||
return True
|
||||
else:
|
||||
syslog.syslog(
|
||||
|
||||
Reference in New Issue
Block a user