Skip to content

Commit

Permalink
fix: default ports;
Browse files Browse the repository at this point in the history
  • Loading branch information
roxblnfk committed Jun 20, 2024
1 parent bb2bbc2 commit 4893fc6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Command/Run.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function getServers(Container $container): array
$config = $container->get(TcpPorts::class);

$servers = [];
$ports = $config->ports ?: [1025, 8000, 9912, 9913];
$ports = $config->ports;
/** @var scalar $port */
foreach ($ports as $port) {
\is_numeric($port) or throw new \InvalidArgumentException(
Expand Down
2 changes: 1 addition & 1 deletion src/Config/Server/TcpPorts.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ final class TcpPorts
*/
#[Env('TRAP_TCP_PORTS')]
#[InputOption('port')]
public array $ports = [9912];
public array $ports = [1025, 8000, 9912, 9913];

/**
* Host to listen
Expand Down

0 comments on commit 4893fc6

Please sign in to comment.