feat: added api server port setting

This commit is contained in:
Daniel Alencar
2023-11-11 15:52:51 -03:00
committed by AT
parent 5c248dbec9
commit fe653d1489
4 changed files with 58 additions and 2 deletions

View File

@@ -71,7 +71,7 @@ Server::~Server()
void Server::start()
{
m_server = new QHttpServer(this);
if (!m_server->listen(QHostAddress::LocalHost, 4891)) {
if (!m_server->listen(QHostAddress::LocalHost, MySettings::globalInstance()->networkPort())) {
qWarning() << "ERROR: Unable to start the server";
return;
}