summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJustin <justin@fortinj.com>2021-03-23 09:17:38 -0400
committerChristian Poessinger <christian@poessinger.com>2021-03-24 17:44:27 +0100
commit00d0ca6f8aafe5be55624ccd1462d855565b124f (patch)
tree0f41fe00912851bd897371f70072b16f03a4dadd
parent5501e5f1de0201f4c977a8027b6e97caf1affa1b (diff)
downloadvyos-1x-00d0ca6f8aafe5be55624ccd1462d855565b124f.tar.gz
vyos-1x-00d0ca6f8aafe5be55624ccd1462d855565b124f.zip
ddclient: T3422: Allow zone property with cloudflare protocol
Allows Dynamic DNS services with custom names to use the zone field if the protocol is set to cloudflare (cherry picked from commit 5ab6c20f8acd4dda1870b9a71fe73129d2f78b24)
-rwxr-xr-xsrc/conf_mode/dynamic_dns.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/conf_mode/dynamic_dns.py b/src/conf_mode/dynamic_dns.py
index 6d39c6644..c979feca7 100755
--- a/src/conf_mode/dynamic_dns.py
+++ b/src/conf_mode/dynamic_dns.py
@@ -114,7 +114,7 @@ def verify(dyndns):
raise ConfigError(f'"password" {error_msg}')
if 'zone' in config:
- if service != 'cloudflare':
+ if service != 'cloudflare' and ('protocol' not in config or config['protocol'] != 'cloudflare'):
raise ConfigError(f'"zone" option only supported with CloudFlare')
if 'custom' in config: