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:
parent
755171a256
commit
c43167c846
@ -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
|
||||||
|
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user