Skip to content

Commit

Permalink
dns: fix AAAA record save
Browse files Browse the repository at this point in the history
  • Loading branch information
fichtner committed May 25, 2016
1 parent 570b51a commit 217c0c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/www/services_unbound_host_edit.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ function hostcmp($a, $b)
$hostent = array();
$hostent['host'] = $pconfig['host'];
$hostent['domain'] = $pconfig['domain'];
/* Destinguish between A and AAAA by parsing the passed IP address */
$hostent['rr'] = $pconfig['rr'] == "A" && is_ipaddrv6($pconfig['ip']) ? "AAA" : $pconfig['rr'];
/* distinguish between A and AAAA by parsing the passed IP address */
$hostent['rr'] = ($pconfig['rr'] == 'A' && is_ipaddrv6($pconfig['ip'])) ? 'AAAA' : $pconfig['rr'];
$hostent['ip'] = $pconfig['ip'];
$hostent['mxprio'] = $pconfig['mxprio'];
$hostent['mx'] = $pconfig['mx'];
Expand Down

0 comments on commit 217c0c9

Please sign in to comment.