mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-29 16:15:04 +00:00
fix: domain should not be null
This commit is contained in:
@@ -35,11 +35,11 @@ readonly class InfluxdbService
|
|||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addRdapQueryPoint(RdapServer $rdapServer, Domain $domain, array $info): void
|
public function addRdapQueryPoint(RdapServer $rdapServer, string $ldhName, array $info): void
|
||||||
{
|
{
|
||||||
$this->writePoints(new Point('rdap_query', [
|
$this->writePoints(new Point('rdap_query', [
|
||||||
'domain' => $domain->getLdhName(),
|
'ldh_name' => $ldhName,
|
||||||
'tld' => $domain->getTld()->getTld(),
|
'tld' => $rdapServer->getTld()->getTld(),
|
||||||
'rdap_server' => $rdapServer->getUrl(),
|
'rdap_server' => $rdapServer->getUrl(),
|
||||||
'primary_ip' => $info['primary_ip'],
|
'primary_ip' => $info['primary_ip'],
|
||||||
], [
|
], [
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ readonly class RDAPService
|
|||||||
throw $e;
|
throw $e;
|
||||||
} finally {
|
} finally {
|
||||||
if ($this->influxdbEnabled && isset($req)) {
|
if ($this->influxdbEnabled && isset($req)) {
|
||||||
$this->influxService->addRdapQueryPoint($rdapServer, $domain, $req->getInfo());
|
$this->influxService->addRdapQueryPoint($rdapServer, $idnDomain, $req->getInfo());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user