More fine grained update of dyndns and dnsupdate.

This commit is contained in:
Ermal Lui 2009-12-21 17:31:55 +00:00
parent 2ec2a37468
commit 771df54ef1
2 changed files with 2 additions and 2 deletions

View File

@ -36,7 +36,7 @@ require_once("shaper.inc");
/* Interface IP address has changed */
$argument = str_replace("\n", "", $argv[1]);
$argument = trim($argv[1], " \n");
if(empty($argument))
services_dyndns_configure();

View File

@ -86,7 +86,7 @@ if (isset($config['system']['dnsallowoverride']))
system_resolvconf_generate(true);
/* perform RFC 2136 DNS update */
services_dnsupdate_process();
services_dnsupdate_process($interface);
/* write current WAN IP to file */
$fd = fopen("{$g['vardb_path']}/{$interface}_ip", "w");