Author: zothar
Date: 2006-06-18 19:09:08 +0000 (Sun, 18 Jun 2006)
New Revision: 9306
Modified:
trunk/freenet/src/freenet/io/comm/FreenetInetAddress.java
Log:
A little extra logging for the paranoid in
FreenetInetAdddress.getHandshakeAddress()
Modified: trunk/freenet/src/freenet/io/comm/FreenetInetAddress.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/FreenetInetAddress.java 2006-06-18
19:04:59 UTC (rev 9305)
+++ trunk/freenet/src/freenet/io/comm/FreenetInetAddress.java 2006-06-18
19:09:08 UTC (rev 9306)
@@ -179,6 +179,7 @@
public InetAddress getHandshakeAddress() {
// Since we're handshaking, hostname-to-IP may have changed
if (_address != null && hostname == null) {
+ Logger.minor(this, "hostname is null, returning "+_address);
return _address;
} else {
Logger.minor(this, "Looking up '"+hostname+"' in DNS");
@@ -207,6 +208,7 @@
}
return addr;
} catch (UnknownHostException e) {
+ Logger.minor(this, "DNS said hostname '"+hostname+"' is an
unknown host, returning null");
return null;
}
}