mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Do not update device IP when DNS resolution fails (#15499)
This commit is contained in:
@@ -251,7 +251,7 @@ class Poller
|
||||
{
|
||||
\DeviceCache::setPrimary($device_id);
|
||||
$this->device = \DeviceCache::getPrimary();
|
||||
$this->device->ip = $this->device->overwrite_ip ?: Dns::lookupIp($this->device);
|
||||
$this->device->ip = $this->device->overwrite_ip ?: Dns::lookupIp($this->device) ?: $this->device->ip;
|
||||
|
||||
$this->deviceArray = $this->device->toArray();
|
||||
if ($os_group = Config::get("os.{$this->device->os}.group")) {
|
||||
|
Reference in New Issue
Block a user