Commit ee7f7114 authored by Ahmad Samir's avatar Ahmad Samir
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.12
parent e693f2d7
......@@ -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