diff options
Diffstat (limited to 'scripts/dynamic-dns/vyatta-dynamic-dns.pl')
-rw-r--r-- | scripts/dynamic-dns/vyatta-dynamic-dns.pl | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scripts/dynamic-dns/vyatta-dynamic-dns.pl b/scripts/dynamic-dns/vyatta-dynamic-dns.pl index 30512bae..1d8511c5 100644 --- a/scripts/dynamic-dns/vyatta-dynamic-dns.pl +++ b/scripts/dynamic-dns/vyatta-dynamic-dns.pl @@ -124,8 +124,12 @@ sub dynamicdns_get_values { my $login = $config->returnValue("login"); my $password = $config->returnValue("password"); my @hostnames = $config->returnValues("host-name"); + my $server = $config->returnValue("server"); foreach my $hostname (@hostnames) { $output .= "protocol=$service\n"; + if (defined $server) { + $output .= "server=$server\n"; + } $output .= "max-interval=28d\n"; $output .= "login=$login\n"; $output .= "password='$password'\n"; |