Made JSON API port configurable from retroshare-gui

Use port used by webui + 2
This commit is contained in:
Gioacchino Mazzurco 2018-08-25 18:39:32 +02:00
parent 41f7235ed0
commit f5d306c7b1
No known key found for this signature in database
GPG Key ID: A1FBCA3872E87051

View File

@ -110,7 +110,8 @@ QString WebuiPage::helpText() const
apiServerLocal = new resource_api::ApiServerLocal(apiServer, resource_api::ApiServerLocal::serverPath());
#endif
#ifdef RS_JSONAPI
jsonApiServer = new JsonApiServer(9092);
// Use same port of libresapi + 2
jsonApiServer = new JsonApiServer(Settings->getWebinterfacePort() + 2);
jsonApiServer->start("WebuiPage::jsonApiServer");
#endif
return ok;