diff options
author | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-19 21:18:24 -0700 |
---|---|---|
committer | Mohit Mehta <mohit.mehta@vyatta.com> | 2009-05-19 21:18:24 -0700 |
commit | 510939d063e212a0114fa2b374c1396994ecfd0f (patch) | |
tree | d2ae7088b26323b5ffe6b963b52d709b27a0d683 /scripts/dynamic-dns/vyatta-dynamic-dns.pl | |
parent | fc734a42e6a29774e47f74445e0ebc3cf376efc2 (diff) | |
download | vyatta-cfg-quagga-510939d063e212a0114fa2b374c1396994ecfd0f.tar.gz vyatta-cfg-quagga-510939d063e212a0114fa2b374c1396994ecfd0f.zip |
Fix Bug 4416 Add the ability to configure a specific server for DynDNS
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"; |