From 04c4117a28f9217f8e7922716d4b89ff5e89061b Mon Sep 17 00:00:00 2001 From: iegorka Date: Thu, 30 Jan 2020 17:29:13 +0100 Subject: [PATCH] Fix ERROR: Solr: invalid port specification: "65983" #75 --- src/Core/ProjectWizard.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Core/ProjectWizard.php b/src/Core/ProjectWizard.php index c7b2210..3848141 100644 --- a/src/Core/ProjectWizard.php +++ b/src/Core/ProjectWizard.php @@ -207,7 +207,7 @@ protected function getNetworkTCPPort(): int { $default = 42; $validator = function ($value) { - if (($value > 0) && ($value <= 65)) { + if (($value > 0) && ($value <= 64)) { $socket = @fsockopen('127.0.0.1', (int) "{$value}080", $errno, $errstr, 5); if ($socket) { fclose($socket); @@ -226,7 +226,7 @@ protected function getNetworkTCPPort(): int } $message = 'What is the TCP Port Prefix you want?'; - $errorMessage = 'The TCP Port Prefix is not correct (already used or not between 1 and 65.'; + $errorMessage = 'The TCP Port Prefix is not correct (already used or not between 1 and 64.'; return (int) $this->io->askQuestion($this->getQuestion($message, $default, $validator, $errorMessage)); }