From 510939d063e212a0114fa2b374c1396994ecfd0f Mon Sep 17 00:00:00 2001 From: Mohit Mehta Date: Tue, 19 May 2009 21:18:24 -0700 Subject: Fix Bug 4416 Add the ability to configure a specific server for DynDNS --- scripts/dynamic-dns/vyatta-dynamic-dns.pl | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'scripts') 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"; -- cgit v1.2.3