From 63ae6850d3db952e948c17eee2269eed2964111f Mon Sep 17 00:00:00 2001 From: orignal Date: Mon, 30 Oct 2017 12:58:20 -0400 Subject: [PATCH] Fix #979. Router without host but with introducers is considered as SSU v4 --- libi2pd/RouterInfo.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libi2pd/RouterInfo.cpp b/libi2pd/RouterInfo.cpp index be2a5904..3719e68a 100644 --- a/libi2pd/RouterInfo.cpp +++ b/libi2pd/RouterInfo.cpp @@ -166,7 +166,6 @@ namespace data for (int i = 0; i < numAddresses; i++) { uint8_t supportedTransports = 0; - bool isValidAddress = true; auto address = std::make_shared
(); s.read ((char *)&address->cost, sizeof (address->cost)); s.read ((char *)&address->date, sizeof (address->date)); @@ -269,7 +268,8 @@ namespace data } if (!s) return; } - if (isValidAddress) + if (introducers) supportedTransports |= eSSUV4; // in case if host is not presented + if (supportedTransports) { addresses->push_back(address); m_SupportedTransports |= supportedTransports;