From ddf25d3ab18fd9b317c11ba13b83d6415b3891c5 Mon Sep 17 00:00:00 2001 From: wimpunk Date: Mon, 23 Mar 2015 18:46:16 +0000 Subject: [PATCH] Added simple support for Duckdns www.duckdns.org Patch provided by gkranis on github. Merge branch 'gkranis' git-svn-id: svn+ssh://svn.code.sf.net/p/ddclient/code/trunk@178 3873ddee-7413-0410-b6c4-c2c57c1ab35a --- ddclient | 91 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 91 insertions(+) diff --git a/ddclient b/ddclient index 9ee5bd5..a3d96d8 100755 --- a/ddclient +++ b/ddclient @@ -450,6 +450,9 @@ my %variables = ( }, 'googledomains-common-defaults' => { 'server' => setv(T_FQDNP, 1, 0, 1, 'domains.google.com', undef), + 'duckdns-common-defaults' => { + 'server' => setv(T_FQDNP, 1, 0, 1, 'www.duckdns.org', undef), + 'login' => setv(T_LOGIN, 0, 0, 0, 'unused', undef), }, ); my %services = ( @@ -626,6 +629,15 @@ my %services = ( $variables{'service-common-defaults'}, ), }, + 'duckdns' => { + 'updateable' => undef, + 'update' => \&nic_duckdns_update, + 'examples' => \&nic_duckdns_examples, + 'variables' => merge( + $variables{'duckdns-common-defaults'}, + $variables{'service-common-defaults'}, + ), + }, ); $variables{'merged'} = merge($variables{'global-defaults'}, $variables{'service-common-defaults'}, @@ -4119,6 +4131,85 @@ sub nic_cloudflare_update { } } +###################################################################### +## nic_duckdns_examples +###################################################################### +sub nic_duckdns_examples { + return <