diff --git a/library/Icingadb/ProvidedHook/X509/Sni.php b/library/Icingadb/ProvidedHook/X509/Sni.php index ef95c2ec6..4e42edbea 100644 --- a/library/Icingadb/ProvidedHook/X509/Sni.php +++ b/library/Icingadb/ProvidedHook/X509/Sni.php @@ -22,6 +22,8 @@ class Sni extends SniHook */ public function getHosts(Filter $filter = null): Generator { + $this->getDb()->ping(); + $queryHost = Host::on($this->getDb()); $queryHost->getSelectBase();