Commit 53ad35eb authored by Franco Fichtner's avatar Franco Fichtner

dns: fix AAAA record save

PR: https://forum.opnsense.org/index.php?topic=3092.0
(cherry picked from commit 217c0c9b)
parent be141504
......@@ -109,8 +109,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
$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'];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment