dns: rename 'ports' to 'dns_ports' for clarity

This commit is contained in:
Franco Fichtner 2023-03-29 09:10:50 +02:00
parent 3b94eef990
commit 695f43aa99
2 changed files with 2 additions and 2 deletions

View file

@ -63,7 +63,7 @@ function bind_services()
$services[] = [
/* the port may still be something other than 53, but it's safe to register a conflict for it */
'ports' => ($localhost4 && $localhost6 ? [(string)$model->port] : []),
'dns_ports' => ($localhost4 && $localhost6 ? [(string)$model->port] : []),
'description' => gettext('BIND Daemon'),
'configd' => [
'restart' => ['bind restart'],

View file

@ -68,7 +68,7 @@ function dnscryptproxy_services()
$services[] = [
/* the port may still be something other than 53, but it's safe to register a conflict for it */
'ports' => array_keys(array_intersect_key($localhost4, $localhost6)),
'dns_ports' => array_keys(array_intersect_key($localhost4, $localhost6)),
'description' => gettext('DNSCrypt-Proxy'),
'configd' => [
'restart' => ['dnscryptproxy restart'],