mirror of
https://github.com/pelican-dev/panel.git
synced 2025-06-11 16:09:00 +02:00
Fix mappings
This commit is contained in:
parent
8b86707150
commit
f2754c3cb1
@ -200,7 +200,12 @@ class Server extends Model
|
|||||||
*/
|
*/
|
||||||
public function getPortMappings(): array
|
public function getPortMappings(): array
|
||||||
{
|
{
|
||||||
return $this->ports->map(fn (Endpoint $port) => (string) $port)->all();
|
return $this->ports->mapToGroups(fn (Endpoint $endpoint) =>
|
||||||
|
[$endpoint->ip => $endpoint->port]
|
||||||
|
)->toArray();
|
||||||
|
|
||||||
|
$ips = $this->ports->map(fn (Endpoint $endpoint) => $endpoint->ip)->unique()->all();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function isInstalled(): bool
|
public function isInstalled(): bool
|
||||||
|
Loading…
x
Reference in New Issue
Block a user