From 4893fc6c976b6a5a5a25b09e135d359eead2b6eb Mon Sep 17 00:00:00 2001 From: roxblnfk Date: Thu, 20 Jun 2024 22:45:38 +0400 Subject: [PATCH] fix: default ports; --- src/Command/Run.php | 2 +- src/Config/Server/TcpPorts.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Command/Run.php b/src/Command/Run.php index 91bb1adb..62ddb1a0 100644 --- a/src/Command/Run.php +++ b/src/Command/Run.php @@ -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( diff --git a/src/Config/Server/TcpPorts.php b/src/Config/Server/TcpPorts.php index 513a2955..dab78ed6 100644 --- a/src/Config/Server/TcpPorts.php +++ b/src/Config/Server/TcpPorts.php @@ -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