mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-02-08 22:13:48 +01:00
Merge remote-tracking branch 'purple/openssl'
This commit is contained in:
commit
c9a0897208
1 changed files with 3 additions and 1 deletions
|
@ -67,7 +67,9 @@ namespace i2p
|
||||||
if (ipv6)
|
if (ipv6)
|
||||||
{
|
{
|
||||||
std::string host = "::";
|
std::string host = "::";
|
||||||
if (!ifname.empty())
|
if (!i2p::config::IsDefault("host") && !ipv4) // override if v6 only
|
||||||
|
i2p::config::GetOption("host", host);
|
||||||
|
else if (!ifname.empty())
|
||||||
host = i2p::util::net::GetInterfaceAddress(ifname, true).to_string(); // v6
|
host = i2p::util::net::GetInterfaceAddress(ifname, true).to_string(); // v6
|
||||||
routerInfo.AddSSUAddress (host.c_str(), port, routerInfo.GetIdentHash ());
|
routerInfo.AddSSUAddress (host.c_str(), port, routerInfo.GetIdentHash ());
|
||||||
routerInfo.AddNTCPAddress (host.c_str(), port);
|
routerInfo.AddNTCPAddress (host.c_str(), port);
|
||||||
|
|
Loading…
Add table
Reference in a new issue