Browse Source

Merge remote-tracking branch 'purple/openssl'

pull/628/head
Jeff Becker 8 years ago
parent
commit
c9a0897208
No known key found for this signature in database
GPG Key ID: AB950234D6EA286B
  1. 4
      RouterContext.cpp

4
RouterContext.cpp

@ -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…
Cancel
Save