Browse Source

don't check 'discover' for I2P

pull/5/head
orignal 7 years ago
parent
commit
c43167c846
  1. 2
      src/init.cpp
  2. 2
      src/net.cpp

2
src/init.cpp

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

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

Loading…
Cancel
Save