Commit 6c68020c authored by Ad Schellevis's avatar Ad Schellevis Committed by Franco Fichtner

gwlb, found the use......

gwlb, found the use... https://github.com/opnsense/core/commit/2dbc3ab259cb7b141d1900b8dea8a503d17ddf72

(cherry picked from commit f296f681)
parent 20f044ed
......@@ -225,7 +225,11 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
foreach($config['gateways']['gateway_group'] as $gw_group) {
if($gw_group['name'] == $pconfig['gateway']) {
$a_gatewaygroups = return_gateway_groups_array();
$family = $a_gatewaygroups[$pconfig['gateway']]['ipprotocol'];
$family = 'inet';
if ( count($a_gatewaygroups[$pconfig['gateway']]) > 0 &&
is_ipaddrv6($a_gatewaygroups[$pconfig['gateway']][0]['gwip'])) {
$family = 'inet6';
}
if(($pconfig['ipprotocol'] == "inet6") && ($pconfig['ipprotocol'] != $family)) {
$input_errors[] = gettext("You can not assign a IPv4 gateway group on IPv6 Address Family rule");
}
......
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