mirror of
https://github.com/netbirdio/plugins.git
synced 2026-05-22 18:44:07 -07:00
dns/ddclient - accept response codes between 200 and 300, closes https://github.com/opnsense/plugins/pull/3618
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
PLUGIN_NAME= ddclient
|
||||
PLUGIN_VERSION= 1.16
|
||||
PLUGIN_REVISION= 1
|
||||
PLUGIN_DEPENDS= ddclient-devel py${PLUGIN_PYTHON}-boto3
|
||||
PLUGIN_COMMENT= Dynamic DNS client
|
||||
PLUGIN_MAINTAINER= ad@opnsense.org
|
||||
|
||||
@@ -98,7 +98,7 @@ class DynDNS2(BaseAccount):
|
||||
}
|
||||
req = requests.get(**req_opts)
|
||||
|
||||
if req.status_code == 200:
|
||||
if 200 >= req.status_code < 300:
|
||||
if self.is_verbose:
|
||||
syslog.syslog(
|
||||
syslog.LOG_NOTICE,
|
||||
|
||||
Reference in New Issue
Block a user