Are you sure? Which peer is constructed from an IP address? The detected
peer certainly, but we keep the official peer as well... that isn't
often looked at?
On Mon, May 01, 2006 at 09:57:14PM +0000, dbkr at freenetproject.org wrote:
> - return _address;
> + if (_address != null) {
> + return _address;
> + } else {
> + /*
> + * Peers are constructed from an address once
> + * a handshake has been completed, so this
> + * lookup will only be performed during a
> + * handshake - it doesn't mean we perform
> + * a DNS lookup with every packet we send.
> + */
> + try {
> + return InetAddress.getByName(hostname);
> + } catch (UnknownHostException e) {
> + return null;
> + }
> + }
> }
--
Matthew J Toseland - toad at amphibian.dyndns.org
Freenet Project Official Codemonkey - http://freenetproject.org/
ICTHUS - Nothing is impossible. Our Boss says so.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL:
<https://emu.freenetproject.org/pipermail/devl/attachments/20060502/b04f2b80/attachment.pgp>