mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-03-22 00:59:08 +01:00
start up if i2p.conf is not presented
This commit is contained in:
parent
df99b37c4d
commit
2b4c3b8d1f
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue