mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: skip ip_exists function when we force add (#4738)
This commit is contained in:
@@ -300,7 +300,7 @@ function addHost($host, $snmp_version = '', $port = '161', $transport = 'udp', $
|
||||
} else {
|
||||
$ip = $host;
|
||||
}
|
||||
if (ip_exists($ip)) {
|
||||
if ($force_add !== true && ip_exists($ip)) {
|
||||
throw new HostIpExistsException("Already have host with this IP $host");
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user