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', [
|
||||
'domain' => $domain->getLdhName(),
|
||||
'tld' => $domain->getTld()->getTld(),
|
||||
'ldh_name' => $ldhName,
|
||||
'tld' => $rdapServer->getTld()->getTld(),
|
||||
'rdap_server' => $rdapServer->getUrl(),
|
||||
'primary_ip' => $info['primary_ip'],
|
||||
], [
|
||||
|
||||
@@ -167,7 +167,7 @@ readonly class RDAPService
|
||||
throw $e;
|
||||
} finally {
|
||||
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