mirror of
https://github.com/mclueppers/xo-server.git
synced 2025-04-08 20:55:02 +02:00
Do not send empty IPs in host_getAll() (see vatesfr/xo-web#9).
This commit is contained in:
parent
8f46aa2242
commit
1a7e9730e7
@ -139,7 +139,10 @@ final class Application extends Base
|
||||
{
|
||||
$PIF = $mgr_pifs->first($PIF_ref);
|
||||
|
||||
$IPs[] = $PIF->IP;
|
||||
if ($PIF->IP)
|
||||
{
|
||||
$IPs[] = $PIF->IP;
|
||||
}
|
||||
}
|
||||
|
||||
$host_metrics = $mgr_hosts_metrics->first($host->metrics);
|
||||
|
Loading…
x
Reference in New Issue
Block a user