Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix ERROR: Solr: invalid port specification: "65983" #75 #76

Merged
merged 1 commit into from
Feb 6, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Core/ProjectWizard.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -226,7 +226,7 @@ protected function getNetworkTCPPort(): int
}

$message = 'What is the <fg=yellow;options=bold>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));
}
Expand Down