mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-08 06:32:55 -04:00
removed Qt from unix version of retroshare service. Enabled loging at start with option -u
This commit is contained in:
parent
a84a96e0b7
commit
90d0686e88
4 changed files with 196 additions and 57 deletions
|
@ -52,6 +52,8 @@ extern JsonApiServer* jsonApiServer;
|
|||
*/
|
||||
struct JsonApiServer : RsSingleJobThread, p3Config
|
||||
{
|
||||
static const uint16_t DEFAULT_PORT = 9092 ;
|
||||
|
||||
/**
|
||||
* @brief construct a JsonApiServer instance with given parameters
|
||||
* @param[in] port listening port fpt the JSON API socket
|
||||
|
@ -62,7 +64,7 @@ struct JsonApiServer : RsSingleJobThread, p3Config
|
|||
* false otherwise, this usually requires user interacion to confirm access
|
||||
*/
|
||||
JsonApiServer(
|
||||
uint16_t port = 9092,
|
||||
uint16_t port = DEFAULT_PORT,
|
||||
const std::string& bindAddress = "127.0.0.1",
|
||||
const std::function<bool(const std::string&)> newAccessRequestCallback = [](const std::string&){return false;} );
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue