|
|
@ -131,12 +131,8 @@ namespace i2p |
|
|
|
ipv6 = true; |
|
|
|
ipv6 = true; |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
uint16_t port; i2p::config::GetOption("port", port); |
|
|
|
i2p::context.SetSupportsV6 (ipv6); |
|
|
|
if (!i2p::config::IsDefault("port")) |
|
|
|
i2p::context.SetSupportsV4 (ipv4); |
|
|
|
{ |
|
|
|
|
|
|
|
LogPrint(eLogInfo, "Daemon: accepting incoming connections at port ", port); |
|
|
|
|
|
|
|
i2p::context.UpdatePort (port); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool nat; i2p::config::GetOption("nat", nat); |
|
|
|
bool nat; i2p::config::GetOption("nat", nat); |
|
|
|
if (nat) |
|
|
|
if (nat) |
|
|
@ -163,6 +159,15 @@ namespace i2p |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
uint16_t port; i2p::config::GetOption("port", port); |
|
|
|
|
|
|
|
if (!i2p::config::IsDefault("port")) |
|
|
|
|
|
|
|
{ |
|
|
|
|
|
|
|
LogPrint(eLogInfo, "Daemon: accepting incoming connections at port ", port); |
|
|
|
|
|
|
|
i2p::context.UpdatePort (port); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bool transit; i2p::config::GetOption("notransit", transit); |
|
|
|
bool transit; i2p::config::GetOption("notransit", transit); |
|
|
|
i2p::context.SetSupportsV6 (ipv6); |
|
|
|
i2p::context.SetSupportsV6 (ipv6); |
|
|
|
i2p::context.SetSupportsV4 (ipv4); |
|
|
|
i2p::context.SetSupportsV4 (ipv4); |
|
|
|