Project

General

Profile

« Previous | Next » 

Revision 1e503870

Added by Phil Davis over 12 years ago

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.

View differences:

etc/inc/services.inc
1471 1471
		$dnsPort = NULL,
1472 1472
		$dnsUpdateURL = "{$conf['updateurl']}",
1473 1473
		$forceUpdate = $conf['force'],
1474
                $dnsZoneID=$conf['zoneid'],
1475
                $dnsTTL=$conf['ttl'],
1474
		$dnsZoneID=$conf['zoneid'],
1475
		$dnsTTL=$conf['ttl'],
1476 1476
		$dnsResultMatch = "{$conf['resultmatch']}",
1477 1477
		$dnsRequestIf = "{$conf['requestif']}",
1478
		$dnsID = "{$conf['id']}");
1478
		$dnsID = "{$conf['id']}",
1479
		$dnsVerboseLog = $conf['verboselog']);
1479 1480
}
1480 1481

  
1481 1482
function services_dyndns_configure($int = "") {
......
1493 1494

  
1494 1495
		foreach ($dyndnscfg as $dyndns) {
1495 1496
			if ((empty($int)) || ($int == $dyndns['interface']) || (is_array($gwgroups[$dyndns['interface']]))) {
1497
				$dyndns['verboselog'] = isset($dyndns['verboselog']);
1496 1498
				services_dyndns_configure_client($dyndns);
1497 1499
				sleep(1);
1498 1500
			}

Also available in: Unified diff