From 9dd38b99d63c0754297e1e504ca282d2b2159f49 Mon Sep 17 00:00:00 2001 From: orignal Date: Sun, 26 Aug 2018 09:40:27 -0400 Subject: [PATCH] check NTCP2 for addreses comparison --- libi2pd/RouterInfo.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libi2pd/RouterInfo.h b/libi2pd/RouterInfo.h index 47a5d680..bc0ed71c 100644 --- a/libi2pd/RouterInfo.h +++ b/libi2pd/RouterInfo.h @@ -117,7 +117,8 @@ namespace data bool operator==(const Address& other) const { - return transportStyle == other.transportStyle && host == other.host && port == other.port; + return transportStyle == other.transportStyle && IsNTCP2 () == other.IsNTCP2 () && + host == other.host && port == other.port; } bool operator!=(const Address& other) const