summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2023-09-30 09:31:17 +0200
committerGitHub <noreply@github.com>2023-09-30 09:31:17 +0200
commit4326035e2319d969ad96d90ad5a8a1bc70427092 (patch)
treeafd325e3235243c5efb17c1d00d4f6d1de7b0c7b /src
parentd95f7036a00d758471a71c22fd014721eff0f007 (diff)
parent6aee08497522990b19291de42f9d445679eaae27 (diff)
downloadvyos-1x-4326035e2319d969ad96d90ad5a8a1bc70427092.tar.gz
vyos-1x-4326035e2319d969ad96d90ad5a8a1bc70427092.zip
Merge pull request #2269 from indrajitr/ddclient-wait-time
ddclient: T5574: Support per-service cache management for providers
Diffstat (limited to 'src')
-rwxr-xr-xsrc/conf_mode/dns_dynamic.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/conf_mode/dns_dynamic.py b/src/conf_mode/dns_dynamic.py
index 8a438cf6f..874c4b689 100755
--- a/src/conf_mode/dns_dynamic.py
+++ b/src/conf_mode/dns_dynamic.py
@@ -111,6 +111,9 @@ def verify(dyndns):
raise ConfigError(f'"{config["protocol"]}" does not support '
f'both IPv4 and IPv6 at the same time for "{config["server"]}"')
+ if {'wait_time', 'expiry_time'} <= config.keys() and int(config['expiry_time']) < int(config['wait_time']):
+ raise ConfigError(f'"expiry-time" must be greater than "wait-time"')
+
return None
def generate(dyndns):