mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-16 09:34:39 +00:00
interfaces: ipv6 is in the next condition #2458
This commit is contained in:
parent
4a825adc50
commit
caabf014aa
@ -107,8 +107,8 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST') {
|
||||
} elseif (is_ipaddrv6($pconfig['gateway'])) {
|
||||
/* do not do a subnet match on a link local address, it's valid */
|
||||
if (!is_linklocal($pconfig['gateway'])) {
|
||||
$parent_ip = get_interface_ipv6($pconfig['interface']);
|
||||
$parent_sn = get_interface_subnetv6($pconfig['interface']);
|
||||
$parent_ip = empty($pconfig['ajaxip']) ? get_interface_ipv6($pconfig['interface']) : $pconfig['ajaxip'];
|
||||
$parent_sn = empty($pconfig['ajaxnet']) ? get_interface_subnetv6($pconfig['interface']) : $pconfig['ajaxnet'];
|
||||
if (empty($parent_ip) || empty($parent_sn)) {
|
||||
$input_errors[] = gettext("Cannot add IPv6 Gateway Address because no IPv6 address could be found on the interface.");
|
||||
} else {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user