dns/dnscrypt-proxy: safeguard

This commit is contained in:
Franco Fichtner
2023-08-02 08:43:30 +02:00
parent fea4f7eb18
commit 135428113b
2 changed files with 5 additions and 0 deletions
+1
View File
@@ -1,5 +1,6 @@
PLUGIN_NAME= dnscrypt-proxy
PLUGIN_VERSION= 1.14
PLUGIN_REVISION= 1
PLUGIN_COMMENT= Flexible DNS proxy supporting DNSCrypt and DoH
PLUGIN_DEPENDS= dnscrypt-proxy2
PLUGIN_MAINTAINER= m.muenz@gmail.com
@@ -63,6 +63,10 @@ class General extends BaseModel
if (empty($service['dns_ports'])) {
continue;
}
if (!is_array($service['dns_ports'])) {
syslog(LOG_ERR, sprintf('Service %s (%s) reported a faulty "dns_ports" entry.', $service['description'], $service['name']));
continue;
}
if ($service['name'] != 'dnscrypt-proxy' && count(array_intersect(array_keys($ports), $service['dns_ports']))) {
$messages->appendMessage(new Message(
sprintf(gettext('%s is currently using one of these ports.'), $service['description']),