Browse Source

Update Daemon.cpp

rollback
pull/106/head
orignal 10 years ago
parent
commit
a20cc97fa3
  1. 5
      Daemon.cpp

5
Daemon.cpp

@ -83,6 +83,8 @@ namespace i2p @@ -83,6 +83,8 @@ namespace i2p
{
// initialize log
if (isLogging)
{
if (isDaemon)
{
std::string logfile_path = IsService () ? "/var/log" : i2p::util::filesystem::GetDataDir().string();
#ifndef _WIN32
@ -92,6 +94,9 @@ namespace i2p @@ -92,6 +94,9 @@ namespace i2p
#endif
StartLog (logfile_path);
}
else
StartLog (""); // write to stdout
}
d.httpServer = new i2p::util::HTTPServer(i2p::util::config::GetArg("-httpport", 7070));
d.httpServer->Start();

Loading…
Cancel
Save