1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-01-30 16:34:29 +00:00

rollback of discover

This commit is contained in:
orignal 2017-03-29 20:50:10 -04:00
parent d7349cba71
commit 14c139bd0c
2 changed files with 2 additions and 2 deletions

2
i2pd

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

View File

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