summaryrefslogtreecommitdiff
path: root/src/conf_mode/dynamic_dns.py
diff options
context:
space:
mode:
authorZen3515 <7106408+Zen3515@users.noreply.github.com>2023-05-12 16:33:09 +0700
committerZen3515 <7106408+Zen3515@users.noreply.github.com>2023-05-12 16:33:09 +0700
commit9fc53924271c151e3e5229a64acec35006d4f7fe (patch)
tree5f512baec56c71fc9296e7a1a11ce5e75cafa7d7 /src/conf_mode/dynamic_dns.py
parentc3f957b9bfc7233fe08d4dd65b80abf92097c81b (diff)
downloadvyos-1x-9fc53924271c151e3e5229a64acec35006d4f7fe.tar.gz
vyos-1x-9fc53924271c151e3e5229a64acec35006d4f7fe.zip
T5219: ddclient: Cloudflare doesn't require login
Diffstat (limited to 'src/conf_mode/dynamic_dns.py')
-rwxr-xr-xsrc/conf_mode/dynamic_dns.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/conf_mode/dynamic_dns.py b/src/conf_mode/dynamic_dns.py
index 06a2f7e15..426e3d693 100755
--- a/src/conf_mode/dynamic_dns.py
+++ b/src/conf_mode/dynamic_dns.py
@@ -108,7 +108,8 @@ def verify(dyndns):
raise ConfigError(f'"host-name" {error_msg}')
if 'login' not in config:
- raise ConfigError(f'"login" (username) {error_msg}')
+ if service != 'cloudflare' and ('protocol' not in config or config['protocol'] != 'cloudflare'):
+ raise ConfigError(f'"login" (username) {error_msg}, unless using CloudFlare')
if 'password' not in config:
raise ConfigError(f'"password" {error_msg}')