mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-25 15:35:49 -04:00
Made JSON API port configurable from retroshare-gui
Use port used by webui + 2
This commit is contained in:
parent
41f7235ed0
commit
f5d306c7b1
1 changed files with 2 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue