From 4ef3c1fbe850274ec5a01e03025cbdf75d0382c8 Mon Sep 17 00:00:00 2001 From: Ad Schellevis Date: Mon, 20 Mar 2023 20:19:43 +0100 Subject: [PATCH] Interfaces: Virtual IPs: Settings - ip alias + vhid validation issue, likely fix for https://github.com/opnsense/core/issues/6422 --- src/opnsense/mvc/app/models/OPNsense/Interfaces/Vip.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/opnsense/mvc/app/models/OPNsense/Interfaces/Vip.php b/src/opnsense/mvc/app/models/OPNsense/Interfaces/Vip.php index afc6fe3a9..eb6a9bbd4 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Interfaces/Vip.php +++ b/src/opnsense/mvc/app/models/OPNsense/Interfaces/Vip.php @@ -105,8 +105,8 @@ class Vip extends BaseModel } } } + $vhid_key = sprintf("%s_%s", $node->interface, $node->vhid); if ((string)$node->mode == 'carp') { - $vhid_key = sprintf("%s_%s", $node->interface, $node->vhid); if (empty((string)$node->password)) { $messages->appendMessage( new Message(