interfaces: typo in validation, failed to communicate unassignable targets. closes https://github.com/opnsense/core/issues/4050

This commit is contained in:
Ad Schellevis 2020-04-21 11:09:19 +02:00
parent 3b3577f1f5
commit 8bfd62c876

View File

@ -681,9 +681,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'GET') {
if ($pconfig['type'] != 'none' || $pconfig['type6'] != 'none') {
foreach (plugins_devices() as $device) {
if (!isset($device['configurable']) || $device['configurable'] == true) {
continue;
continue;
}
if (preg_match('/' . $device['pattern'] . '/', $ifport)) {
if (preg_match('/' . $device['pattern'] . '/', $pconfig['if'])) {
$input_errors[] = gettext('Cannot assign an IP configuration type to a tunnel interface.');
}
}