From 2b4c3b8d1ff17c28b8e81e150c6523e4b6518ad2 Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 22 Feb 2016 15:17:58 -0500 Subject: [PATCH] start up if i2p.conf is not presented --- Daemon.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Daemon.cpp b/Daemon.cpp index 776e0701..4a61b81b 100644 --- a/Daemon.cpp +++ b/Daemon.cpp @@ -71,7 +71,11 @@ namespace i2p datadir = i2p::fs::GetDataDir(); 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 == "") tunconf = i2p::fs::DataDirPath("tunnels.cfg");