accept v6 only for v6 acceptor

This commit is contained in:
orignal 2014-10-27 20:36:03 -04:00
parent 2dfd351e7a
commit 7900e9b126
2 changed files with 11 additions and 8 deletions

View file

@ -704,7 +704,7 @@ namespace util
s << "NTCP<br>";
for (auto it: i2p::transport::transports.GetNTCPSessions ())
{
if (it.second->IsEstablished ())
if (it.second && it.second->IsEstablished ())
{
// incoming connection doesn't have remote RI
bool outgoing = it.second->GetRemoteRouter ();