mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-29 16:54:06 +02:00
GetHostByAddr: Handle Null
This commit is contained in:
parent
213f897ffc
commit
ce9f94feda
@ -29,6 +29,9 @@ class PropertyModifierGetHostByAddr extends PropertyModifierHook
|
||||
|
||||
public function transform($value)
|
||||
{
|
||||
if ($value === null) {
|
||||
return null;
|
||||
}
|
||||
$host = gethostbyaddr($value);
|
||||
if ($host === false) {
|
||||
switch ($this->getSetting('on_failure')) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user