From 8bfd62c876ce932b06e7b1d6bd26f2a2967e5f42 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Tue, 21 Apr 2020 11:09:19 +0200 Subject: [PATCH] interfaces: typo in validation, failed to communicate unassignable targets. closes https://github.com/opnsense/core/issues/4050 --- src/www/interfaces.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/www/interfaces.php b/src/www/interfaces.php index dfd61d182..dffb3ed79 100644 --- a/src/www/interfaces.php +++ b/src/www/interfaces.php @@ -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.'); } }