mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
dns: fix AAAA record save
PR: https://forum.opnsense.org/index.php?topic=3092.0
This commit is contained in:
parent
570b51afda
commit
217c0c9b35
@ -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'];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user