initial meshnet mode

This commit is contained in:
Jeff Becker 2016-06-27 09:47:53 -04:00
parent 0c46993baa
commit 4cf4436169
No known key found for this signature in database
GPG key ID: AB950234D6EA286B
4 changed files with 29 additions and 8 deletions

View file

@ -138,6 +138,11 @@ namespace i2p
bool ipv6; i2p::config::GetOption("ipv6", ipv6);
bool ipv4; i2p::config::GetOption("ipv4", ipv4);
#ifdef MESHNET
// manual override for meshnet
ipv4 = false;
ipv6 = true;
#endif
bool transit; i2p::config::GetOption("notransit", transit);
i2p::context.SetSupportsV6 (ipv6);
i2p::context.SetSupportsV4 (ipv4);