Bitmessage/PyBitmessage — pull request #358 by grbitmsg (2013-08-01 10:39:53+00:00)
Title: Distinguish peers by both IP address and port in known nodes, not only the IP address.

If several instances of Bitmessage are running on a single machine or behind a NAT, a node's IP address is not unique. Therefore it should not be used as the key to the set of known nodes. These commits add a new Peer type as a namedtuple of host and port, and use these peer objects as hopefully better unique keys.