mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-01 00:36:57 +01:00 
			
		
		
		
	Fix mappings
This commit is contained in:
		
							parent
							
								
									8b86707150
								
							
						
					
					
						commit
						f2754c3cb1
					
				| @ -200,7 +200,12 @@ class Server extends Model | ||||
|      */ | ||||
|     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 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Lance Pioch
						Lance Pioch