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.'); } }