Author: zothar
Date: 2006-05-30 04:26:51 +0000 (Tue, 30 May 2006)
New Revision: 8948

Modified:
   trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
Log:
Found a troublesome spot, but have run out of time for Freenet hacking for now, 
so I'm re-enabling DNS lookups as needed in this spot until I can dig into it 
in 19 hours or so.  (I don't expect DNS lookups to occur often here.)

Modified: trunk/freenet/src/freenet/io/comm/UdpSocketManager.java
===================================================================
--- trunk/freenet/src/freenet/io/comm/UdpSocketManager.java     2006-05-30 
03:06:30 UTC (rev 8947)
+++ trunk/freenet/src/freenet/io/comm/UdpSocketManager.java     2006-05-30 
04:26:51 UTC (rev 8948)
@@ -471,7 +471,11 @@
      * @param destination The peer to send it to.
      */
     public void sendPacket(byte[] blockToSend, Peer destination) {
-               if( destination.getAddress(false) == null ) {
+    // I think DNSRequester should have handled DNS for this spot, but
+    // I'm seeing this error, so I'm temporarily switching this to
+    // allow DNS until I have more time to sort this out  -Zothar (**FIXME**)
+    //if( destination.getAddress(false) == null ) {
+    if( destination.getAddress(true) == null ) {
                     Logger.error(this, "Tried sending to bad destination 
address: null:" + destination.getPort());
                     return;
                }


Reply via email to