diff options
author | Justin <justin@fortinj.com> | 2021-03-23 09:17:38 -0400 |
---|---|---|
committer | Justin <justin@fortinj.com> | 2021-03-23 09:17:38 -0400 |
commit | 5ab6c20f8acd4dda1870b9a71fe73129d2f78b24 (patch) | |
tree | 507f298721cea548088600a0813734e79e50471f /src | |
parent | b9f83a1b21c77b957a333204e4b2dd2e9009b006 (diff) | |
download | vyos-1x-5ab6c20f8acd4dda1870b9a71fe73129d2f78b24.tar.gz vyos-1x-5ab6c20f8acd4dda1870b9a71fe73129d2f78b24.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
Diffstat (limited to 'src')
-rwxr-xr-x | src/conf_mode/dynamic_dns.py | 2 |
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: |