Browse Source

rollback of discover

pull/5/head
orignal 7 years ago
parent
commit
14c139bd0c
  1. 2
      i2pd
  2. 2
      src/net.cpp

2
i2pd

@ -1 +1 @@ @@ -1 +1 @@
Subproject commit 8e558f082666dc540475c849b495a9a6ce2f23c8
Subproject commit 3d1b6e29c6cf3f1c56c279819e8100b1c775b775

2
src/net.cpp

@ -1858,7 +1858,7 @@ bool BindListenNativeI2P(SOCKET& hSocket) @@ -1858,7 +1858,7 @@ bool BindListenNativeI2P(SOCKET& hSocket)
if (!SetSocketOptions(hSocket) || hSocket == INVALID_SOCKET)
return false;
CService addrBind(I2PSession::Instance().getMyDestination().pub, 0);
if (addrBind.IsRoutable())
if (addrBind.IsRoutable() && fDiscover)
AddLocal(addrBind, LOCAL_BIND);
return true;
}

Loading…
Cancel
Save