mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-13 08:29:32 -05:00
Made JSON API port configurable from retroshare-gui
Use port used by webui + 2
This commit is contained in:
parent
41f7235ed0
commit
f5d306c7b1
@ -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…
Reference in New Issue
Block a user