mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-01-28 00:07:09 -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());
|
apiServerLocal = new resource_api::ApiServerLocal(apiServer, resource_api::ApiServerLocal::serverPath());
|
||||||
#endif
|
#endif
|
||||||
#ifdef RS_JSONAPI
|
#ifdef RS_JSONAPI
|
||||||
jsonApiServer = new JsonApiServer(9092);
|
// Use same port of libresapi + 2
|
||||||
|
jsonApiServer = new JsonApiServer(Settings->getWebinterfacePort() + 2);
|
||||||
jsonApiServer->start("WebuiPage::jsonApiServer");
|
jsonApiServer->start("WebuiPage::jsonApiServer");
|
||||||
#endif
|
#endif
|
||||||
return ok;
|
return ok;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user