From c9b1d097c1c505e5444d3c1887cdeb2bb68f0ac4 Mon Sep 17 00:00:00 2001 From: tracer Date: Mon, 21 Mar 2022 14:05:00 +0100 Subject: [PATCH] added check if we are master for a zone Signed-off-by: tracer --- src/Controller/DomainController.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/Controller/DomainController.php b/src/Controller/DomainController.php index e68ff56..77d283c 100644 --- a/src/Controller/DomainController.php +++ b/src/Controller/DomainController.php @@ -21,7 +21,6 @@ class DomainController private string $localZonesDir; private string $namedConfLocalFile; private string $zoneCachePath; - private string $keyhelpNamedCond; public function __construct(private NameserverRepository $nameserverRepository, private ApiController $checkController, private DomainRepository $domainRepository, private PanelRepository $panelRepository, private array $config, private Logger $log) @@ -35,7 +34,6 @@ class DomainController $this->localZonesDir = '/etc/bind/zones/'; $this->namedConfLocalFile = '/etc/bind/named.conf.local'; $this->zoneCachePath = '/var/cache/bind/'; - $this->keyhelpNamedCond = '/etc/bind/named.conf.keyhelp'; } @@ -210,7 +208,7 @@ class DomainController } // check if we're a master zone - if ($this->isMasterZone($domain->getName())) { + if ($this->isMasterZone(domain: $domain)) { echo 'We are zone master for ' . $domain->getName() . PHP_EOL; exit(1); }