Commit 41207a96 authored by Ahmad Samir's avatar Ahmad Samir Committed by Kurt Hindenburg
Browse files

Fix the maximum port number in the SSH Manager plugin

It should be in the System Ports 0-1023 or User Ports 1024-49151 ranges.

See:
https://en.wikipedia.org/wiki/Registered_port
https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml

BUG: 441889
FIXED-IN: 21.08.2
(cherry picked from commit ee7f7114)
parent 58d526f8
......@@ -54,7 +54,9 @@ d(std::make_unique<SSHManagerTreeWidget::Private>())
const auto* hostnameValidator = new QRegularExpressionValidator(hostnameRegex, this);
ui->hostname->setValidator(hostnameValidator);
const auto* portValidator = new QIntValidator(0, 9999);
// System and User ports see:
// https://www.iana.org/assignments/service-names-port-numbers/service-names-port-numbers.xhtml
const auto* portValidator = new QIntValidator(0, 49151);
ui->port->setValidator(portValidator);
connect(ui->newSSHConfig, &QPushButton::clicked, this, &SSHManagerTreeWidget::showInfoPane);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment