1
0
mirror of https://github.com/GOSTSec/gostcoin synced 2025-03-13 05:41:11 +00:00

don't check 'discover' for I2P

This commit is contained in:
orignal 2017-03-28 16:24:04 -04:00
parent 755171a256
commit c43167c846
2 changed files with 2 additions and 2 deletions

View File

@ -866,7 +866,7 @@ bool AppInit2(boost::thread_group& threadGroup)
// see Step 2: parameter interactions for more information about these // see Step 2: parameter interactions for more information about these
fNoListen = !GetBoolArg("-listen", true); fNoListen = !GetBoolArg("-listen", true);
fDiscover = true; //GetBoolArg("-discover", true); TODO fDiscover = GetBoolArg("-discover", true);
fNameLookup = GetBoolArg("-dns", true); fNameLookup = GetBoolArg("-dns", true);
// -i2p can override both tor and proxy // -i2p can override both tor and proxy

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() && fDiscover) if (addrBind.IsRoutable())
AddLocal(addrBind, LOCAL_BIND); AddLocal(addrBind, LOCAL_BIND);
return true; return true;
} }