mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-10-28 20:30:26 +00:00
feat: added api server port setting
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user