summaryrefslogtreecommitdiff
path: root/scripts/dynamic-dns/vyatta-dynamic-dns.pl
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/dynamic-dns/vyatta-dynamic-dns.pl')
-rw-r--r--scripts/dynamic-dns/vyatta-dynamic-dns.pl4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/dynamic-dns/vyatta-dynamic-dns.pl b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
index 1d8511c5..232d260e 100644
--- a/scripts/dynamic-dns/vyatta-dynamic-dns.pl
+++ b/scripts/dynamic-dns/vyatta-dynamic-dns.pl
@@ -126,10 +126,8 @@ sub dynamicdns_get_values {
my @hostnames = $config->returnValues("host-name");
my $server = $config->returnValue("server");
foreach my $hostname (@hostnames) {
+ $output .= "server=$server," if defined $server;
$output .= "protocol=$service\n";
- if (defined $server) {
- $output .= "server=$server\n";
- }
$output .= "max-interval=28d\n";
$output .= "login=$login\n";
$output .= "password='$password'\n";