mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
unbound: fix typo and adjust message
Try to to point user to do something and instead just tell them why this cannot be accepted.
This commit is contained in:
parent
0a43ee9041
commit
3032474e9f
@ -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()
|
||||
));
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user