mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-10 20:47:53 +00:00
* tune logs
This commit is contained in:
parent
7b23d79dc2
commit
7da17ba21e
@ -81,11 +81,14 @@ namespace i2p
|
|||||||
i2p::config::GetOption("log", isLogging);
|
i2p::config::GetOption("log", isLogging);
|
||||||
|
|
||||||
uint16_t port; i2p::config::GetOption("port", port);
|
uint16_t port; i2p::config::GetOption("port", port);
|
||||||
if (port)
|
LogPrint(eLogInfo, "Daemon: accepting incoming connections at port ", port);
|
||||||
i2p::context.UpdatePort (port);
|
i2p::context.UpdatePort (port);
|
||||||
|
|
||||||
std::string host; i2p::config::GetOption("host", host);
|
std::string host; i2p::config::GetOption("host", host);
|
||||||
if (host != "")
|
if (host != "") {
|
||||||
|
LogPrint(eLogInfo, "Daemon: address for incoming connections is ", host);
|
||||||
i2p::context.UpdateAddress (boost::asio::ip::address::from_string (host));
|
i2p::context.UpdateAddress (boost::asio::ip::address::from_string (host));
|
||||||
|
}
|
||||||
|
|
||||||
bool ipv6; i2p::config::GetOption("ipv6", ipv6);
|
bool ipv6; i2p::config::GetOption("ipv6", ipv6);
|
||||||
bool transit; i2p::config::GetOption("notransit", transit);
|
bool transit; i2p::config::GetOption("notransit", transit);
|
||||||
|
Loading…
Reference in New Issue
Block a user