From 3032474e9fc95bf3284a9ebacd5fd90e4718ce6b Mon Sep 17 00:00:00 2001 From: Franco Fichtner Date: Tue, 21 Mar 2023 09:27:55 +0100 Subject: [PATCH] unbound: fix typo and adjust message Try to to point user to do something and instead just tell them why this cannot be accepted. --- src/opnsense/mvc/app/models/OPNsense/Unbound/Unbound.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opnsense/mvc/app/models/OPNsense/Unbound/Unbound.php b/src/opnsense/mvc/app/models/OPNsense/Unbound/Unbound.php index a00f703c1..13af42c11 100644 --- a/src/opnsense/mvc/app/models/OPNsense/Unbound/Unbound.php +++ b/src/opnsense/mvc/app/models/OPNsense/Unbound/Unbound.php @@ -44,9 +44,9 @@ class Unbound extends BaseModel $dnsmasq_port = !empty((string)$config->dnsmasq->port) ? (string)$config->dnsmasq->port : '53'; $unbound_port = (string)$this->general->port; - if (!empty((string)$unbound_enabled) && !empty((string)$config->dnsmasq->enable) && $unbound_port == $dnsmasq_port) { + if (!empty((string)$this->general->enabled) && !empty((string)$config->dnsmasq->enable) && $unbound_port == $dnsmasq_port) { $messages->appendMessage(new Message( - gettext('Dnsmasq is still active on the same port. Disable it before enabling Unbound.'), + gettext('Dnsmasq is currently using this port.'), 'general.' . $this->general->port->getInternalXMLTagName() )); }