From: Stefan Schantl Date: Wed, 9 Jul 2014 19:14:49 +0000 (+0200) Subject: ddns.cgi: Add required code for generating valid nsupdate.info config section. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f5770b46e465736678766f255b7cc6dc711f8358;p=people%2Fms%2Fipfire-2.x.git ddns.cgi: Add required code for generating valid nsupdate.info config section. --- diff --git a/html/cgi-bin/ddns.cgi b/html/cgi-bin/ddns.cgi index 51deb03131..303f92c7c8 100644 --- a/html/cgi-bin/ddns.cgi +++ b/html/cgi-bin/ddns.cgi @@ -675,6 +675,14 @@ sub GenerateDDNSConfigFile { $password = ""; } + # Handle keys for nsupdate.info + } elsif (($provider eq "nsupdate.info") && $password) { + print FILE "secret = $password\n"; + + $username = ""; + $password = ""; + } + # Write auth details. if ($use_token) { print FILE "token = $password\n"; @@ -684,7 +692,7 @@ sub GenerateDDNSConfigFile { } # These providers need to be set to only use IPv4. - if ($provider ~~ ["freedns.afraid.org", "variomedia.de", "zoneedit.com"]) { + if ($provider ~~ ["freedns.afraid.org", "nsupdate.info", "variomedia.de", "zoneedit.com"]) { print FILE "proto = ipv4\n"; }