X509\Sni: Cleanup some codes

This commit is contained in:
Yonas Habteab 2023-09-12 13:55:35 +02:00 committed by Johannes Meyer
parent 9be9d072f1
commit 0a31addffe

View file

@ -24,17 +24,12 @@ class Sni extends SniHook
{
$this->getDb()->ping();
$queryHost = Host::on($this->getDb());
$queryHost->getSelectBase();
$hostStatusCols = [
'host_name' => 'name',
'host_address' => 'address',
'host_address6' => 'address6'
];
$queryHost = $queryHost->columns($hostStatusCols);
$queryHost = Host::on($this->getDb())
->columns([
'host_name' => 'name',
'host_address' => 'address',
'host_address6' => 'address6'
]);
$this->applyRestrictions($queryHost);