diff options
author | Ermal Luçi <eri@pfsense.org> | 2010-03-04 16:11:34 +0000 |
---|---|---|
committer | Ermal Luçi <eri@pfsense.org> | 2010-03-04 16:11:34 +0000 |
commit | 26586f7a09ee0000dd21acfbaa57829f0e103e36 (patch) | |
tree | a0f05cb45f6c6fccd61b7796e1f0a108fda9c9d5 /etc/inc/services.inc | |
parent | 864336aa75543b748f2d0295db1e18eaf65cdacc (diff) | |
download | pfsense-26586f7a09ee0000dd21acfbaa57829f0e103e36.zip pfsense-26586f7a09ee0000dd21acfbaa57829f0e103e36.tar.gz |
Ticket #400. Commit partial patch from this ticket.
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r-- | etc/inc/services.inc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc index 130c94b..0d46b80 100644 --- a/etc/inc/services.inc +++ b/etc/inc/services.inc @@ -834,14 +834,14 @@ function services_dnsupdate_process($int = "") { /* Dynamic DNS updating active? */ if (is_array($config['dnsupdates']['dnsupdate'])) { foreach ($config['dnsupdates']['dnsupdate'] as $i => $dnsupdate) { - if (!isset($dyndns['enable'])) + if (!isset($dnsupdate['enable'])) continue; - if (!empty($int) && $int != $dyndns['interface']) + if (!empty($int) && $int != $dnsupdate['interface']) continue; /* determine interface name */ - $if = get_real_interface($dyndns['interface']); - $wanip = get_interface_ip($dyndns['interface']); + $if = get_real_interface($dnsupdate['interface']); + $wanip = get_interface_ip($dnsupdate['interface']); if ($wanip) { $keyname = $dnsupdate['keyname']; @@ -879,7 +879,7 @@ EOD; $proto = 2; } - $fd = fopen("{$g['varetc_path']}/K{$keyname}+157+00000.key", "w"); + $fd = fopen("{$g['varetc_path']}/K{$i}{$keyname}+157+00000.key", "w"); fwrite($fd, "{$keyname} IN KEY {$flags} {$proto} 157 {$dnsupdate['keydata']}\n"); fclose($fd); @@ -1274,4 +1274,4 @@ function upnp_start() { } } -?>
\ No newline at end of file +?> |