Browse Source

check NTCP2 for addreses comparison

pull/1234/head
orignal 6 years ago
parent
commit
9dd38b99d6
  1. 3
      libi2pd/RouterInfo.h

3
libi2pd/RouterInfo.h

@ -117,7 +117,8 @@ namespace data
bool operator==(const Address& other) const 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 bool operator!=(const Address& other) const

Loading…
Cancel
Save