mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-27 11:17:49 +02:00
* use IsDefault() to check explicitly set values
This commit is contained in:
parent
70f72a78f6
commit
7a0a45e9d2
2 changed files with 3 additions and 3 deletions
|
@ -48,7 +48,7 @@ namespace i2p
|
|||
if (!port)
|
||||
port = rand () % (30777 - 9111) + 9111; // I2P network ports range
|
||||
std::string host; i2p::config::GetOption("host", host);
|
||||
if (host == "0.0.0.0")
|
||||
if (i2p::config::IsDefault("host"))
|
||||
host = "127.0.0.1"; // replace default address with safe value
|
||||
routerInfo.AddSSUAddress (host.c_str(), port, routerInfo.GetIdentHash ());
|
||||
routerInfo.AddNTCPAddress (host.c_str(), port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue