mirror of
https://github.com/pelican-dev/panel.git
synced 2025-05-20 20:24:44 +02:00
Styling fixes
This commit is contained in:
parent
82c294ab63
commit
716d298b75
@ -207,6 +207,7 @@ class ServerResource extends Resource
|
|||||||
|
|
||||||
// Do not add non numerical ports
|
// Do not add non numerical ports
|
||||||
$update = true;
|
$update = true;
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,7 +218,7 @@ class ServerResource extends Resource
|
|||||||
}
|
}
|
||||||
|
|
||||||
$start = max((int) $start, 0);
|
$start = max((int) $start, 0);
|
||||||
$end = min((int) $end, 2**16-1);
|
$end = min((int) $end, 2 ** 16 - 1);
|
||||||
for ($i = $start; $i <= $end; $i++) {
|
for ($i = $start; $i <= $end; $i++) {
|
||||||
$ports->push($i);
|
$ports->push($i);
|
||||||
}
|
}
|
||||||
|
@ -307,7 +307,7 @@ class Node extends Model
|
|||||||
$ips = collect();
|
$ips = collect();
|
||||||
if (is_ip($this->fqdn)) {
|
if (is_ip($this->fqdn)) {
|
||||||
$ips->push($this->fqdn);
|
$ips->push($this->fqdn);
|
||||||
} else if ($dnsRecords = gethostbynamel($this->fqdn)) {
|
} elseif ($dnsRecords = gethostbynamel($this->fqdn)) {
|
||||||
$ips->concat($dnsRecords);
|
$ips->concat($dnsRecords);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user