Routing, gateways. missed two statements where friendlyiface was used, since we keep the configured "interface", these need to be renamed. for https://github.com/opnsense/core/issues/2279

This commit is contained in:
Ad Schellevis 2019-04-13 17:35:34 +02:00
parent 2d3e6de0de
commit c4d42929fb
2 changed files with 2 additions and 2 deletions

View File

@ -508,7 +508,7 @@ function system_staticroutes_configure($interface = '')
continue;
}
$gateway = $gateways_arr[$rtent['gateway']];
if (!empty($interface) && $interface != $gateway['friendlyiface']) {
if (!empty($interface) && $interface != $gateway['interface']) {
continue;
}

View File

@ -241,7 +241,7 @@ $( document ).ready(function() {
</option>
<?php
foreach (get_configured_carp_interface_list() as $vip => $address):
if (!preg_match("/^{$gateway['friendlyiface']}_/i", $vip)) {
if (!preg_match("/^{$gateway['interface']}_/i", $vip)) {
continue;
}
if (($gateway['ipprotocol'] == "inet") && (!is_ipaddrv4($address))) {