Browse Source

start up if i2p.conf is not presented

pull/391/head
orignal 9 years ago
parent
commit
2b4c3b8d1f
  1. 6
      Daemon.cpp

6
Daemon.cpp

@ -71,7 +71,11 @@ namespace i2p
datadir = i2p::fs::GetDataDir(); datadir = i2p::fs::GetDataDir();
if (config == "") if (config == "")
config = i2p::fs::DataDirPath("i2p.conf"); {
config = i2p::fs::DataDirPath("i2p.conf");
// use i2p.cong only if exists
if (!i2p::fs::Exists (config)) config = ""; /* reset */
}
if (tunconf == "") if (tunconf == "")
tunconf = i2p::fs::DataDirPath("tunnels.cfg"); tunconf = i2p::fs::DataDirPath("tunnels.cfg");

Loading…
Cancel
Save