mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-11-01 00:06:52 +01:00 
			
		
		
		
	Skip port variables down below
This commit is contained in:
		
							parent
							
								
									be6f79521e
								
							
						
					
					
						commit
						81f218ddc9
					
				| @ -58,13 +58,16 @@ class CreateServer extends CreateRecord | ||||
|                         $i = 0; | ||||
|                         $this->ports = []; | ||||
|                         foreach ($variables as $variable) { | ||||
|                             $serverVariables->add($variable->toArray()); | ||||
|                             if (str_contains($variable->rules, 'port')) { | ||||
|                                 $this->eggDefaultPorts[$variable->default_value] = $variable->env_variable; | ||||
|                                 $this->ports[] = (int) $variable->default_value; | ||||
| 
 | ||||
|                                 $set("assignments.$i", ['port' => $i++]); | ||||
| 
 | ||||
|                                 continue; | ||||
|                             } | ||||
| 
 | ||||
|                             $serverVariables->add($variable->toArray()); | ||||
|                         } | ||||
| 
 | ||||
|                         $set('ports', array_keys($this->eggDefaultPorts)); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Lance Pioch
						Lance Pioch