diff --git a/app/Models/Node.php b/app/Models/Node.php index 529f6c08c..e42164357 100644 --- a/app/Models/Node.php +++ b/app/Models/Node.php @@ -306,14 +306,14 @@ class Node extends Model return cache()->remember("nodes.$this->id.servers", now()->addHour(), function () { $ips = collect(); if (is_ip($this->fqdn)) { - $ips = $ips->add($this->fqdn); + $ips->push($this->fqdn); } else if ($dnsRecords = gethostbynamel($this->fqdn)) { - $ips = $ips->merge($dnsRecords); + $ips->concat($dnsRecords); } try { $addresses = Http::daemon($this)->connectTimeout(1)->timeout(1)->get('/api/system/ips')->json(); - $ips = $ips->merge(fluent($addresses)->get('ip_addresses')); + $ips->concat(fluent($addresses)->get('ip_addresses')); } catch (Exception) { // pass }