mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2026-07-30 20:39:27 +00:00
check if tunnels.conf exists before open
This commit is contained in:
@@ -547,8 +547,11 @@ namespace client
|
||||
if (tunConf.empty ())
|
||||
tunConf = i2p::fs::DataDirPath ("tunnels.conf");
|
||||
|
||||
LogPrint(eLogDebug, "Clients: Tunnels config file: ", tunConf);
|
||||
ReadTunnels (tunConf, numClientTunnels, numServerTunnels);
|
||||
if (i2p::fs::Exists (tunConf))
|
||||
{
|
||||
LogPrint(eLogDebug, "Clients: Tunnels config file: ", tunConf);
|
||||
ReadTunnels (tunConf, numClientTunnels, numServerTunnels);
|
||||
}
|
||||
|
||||
std::string tunDir; i2p::config::GetOption("tunnelsdir", tunDir);
|
||||
if (tunDir.empty ())
|
||||
|
||||
Reference in New Issue
Block a user