cron_tasks/bind: fix conditions for writing www records

The bind cronjob awlays creates www A/AAAA records, regardless of a
domain's iswildcarddomain or wwwserveralias settings.

With this patch www records only get created if "www alias" is selected
for a domain, i.e. iswildcarddomain is disabled and wwwserveralias is
enabled.
This commit is contained in:
Daniel Reichelt
2016-02-07 23:15:31 +01:00
committed by Daniel Reichelt
parent 7bf8b74693
commit 627e22a2e6

View File

@@ -333,10 +333,11 @@ class bind {
}
$records[] = '@';
$records[] = 'www';
if ($domain['iswildcarddomain'] == '1') {
$records[] = '*';
} else if ($domain['wwwserveralias'] == '1') {
$records[] = 'www';
}
if (!$froxlorhost) {