main
const an teen 2022-04-24 08:35:20 -04:00
parent 972e777291
commit cfee0b0e11
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ int main(int argc, char *argv[])
else if ((param == "--port" or param == "-p") and i+1 < argc)
{
bool ok;
port = QString(argv[i+1]).toInt(&ok);
port = QString(argv[i+1]).toUShort(&ok);
if (not ok)
{
throw std::invalid_argument("Port not int");