summaryrefslogtreecommitdiffstats
path: root/etc/inc/services.inc
diff options
context:
space:
mode:
authorPhil Davis <phil.davis@world.inf.org>2013-03-22 22:26:36 +0545
committerPhil Davis <phil.davis@world.inf.org>2013-03-22 22:26:36 +0545
commit1e503870d0de361059f8a70b5b66474658f60323 (patch)
treee5c5ee1f259f672b61d71337522d123b2216994f /etc/inc/services.inc
parent87b9167234eed690ad6150624169f289f5075625 (diff)
downloadpfsense-1e503870d0de361059f8a70b5b66474658f60323.zip
pfsense-1e503870d0de361059f8a70b5b66474658f60323.tar.gz
Dynamic DNS add option for verbose logging
The verbose log option is "set or not set" in the config and needs to be passed to subroutines as a boolean true or false. Note: This just works in services_dyndns_edit because the in-memory array of settings is keeping it as a boolean.
Diffstat (limited to 'etc/inc/services.inc')
-rw-r--r--etc/inc/services.inc8
1 files changed, 5 insertions, 3 deletions
diff --git a/etc/inc/services.inc b/etc/inc/services.inc
index 7d8110e..d21de57 100644
--- a/etc/inc/services.inc
+++ b/etc/inc/services.inc
@@ -1471,11 +1471,12 @@ function services_dyndns_configure_client($conf) {
$dnsPort = NULL,
$dnsUpdateURL = "{$conf['updateurl']}",
$forceUpdate = $conf['force'],
- $dnsZoneID=$conf['zoneid'],
- $dnsTTL=$conf['ttl'],
+ $dnsZoneID=$conf['zoneid'],
+ $dnsTTL=$conf['ttl'],
$dnsResultMatch = "{$conf['resultmatch']}",
$dnsRequestIf = "{$conf['requestif']}",
- $dnsID = "{$conf['id']}");
+ $dnsID = "{$conf['id']}",
+ $dnsVerboseLog = $conf['verboselog']);
}
function services_dyndns_configure($int = "") {
@@ -1493,6 +1494,7 @@ function services_dyndns_configure($int = "") {
foreach ($dyndnscfg as $dyndns) {
if ((empty($int)) || ($int == $dyndns['interface']) || (is_array($gwgroups[$dyndns['interface']]))) {
+ $dyndns['verboselog'] = isset($dyndns['verboselog']);
services_dyndns_configure_client($dyndns);
sleep(1);
}
OpenPOWER on IntegriCloud