fix meshnet mode:

* don't default to ipv4 when creating router.info
* add i2p::util::config::GetHost for getting host to use from config
* proper check for no transports in Transports.cpp on startup
This commit is contained in:
Jeff Becker 2016-07-14 09:23:33 -04:00
parent 562f320198
commit 3ad196c4c7
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
5 changed files with 41 additions and 42 deletions

6
util.h
View file

@ -68,6 +68,12 @@ namespace util
int GetMTU (const boost::asio::ip::address& localAddress);
const boost::asio::ip::address GetInterfaceAddress(const std::string & ifname, bool ipv6=false);
}
namespace config
{
/** get the host to use from out config, for use in RouterContext.cpp */
std::string GetHost(bool ipv4=true, bool ipv6=true);
}
}
}