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); }