Changeset 9736682


Ignore:
Timestamp:
Sep 12, 2008 1:25:51 PM (12 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6b1fb67
Parents:
2ac5361
Message:
  • Transport: Make 0.0.0.0/8 and 169.254.0.0/16 private
File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/transport/TransportImpl.java

    r2ac5361 r9736682  
    155155            if (_log.shouldLog(Log.WARN))
    156156                _log.warn("afterSend slow: [success=" + sendSuccessful + "] " + msg.getMessageSize() + "byte "
    157                           + msg.getMessageType() + " " + msg.getMessageId() + " from "
    158                           + _context.routerHash().toBase64().substring(0,6) + " took " + msToSend
     157                          + msg.getMessageType() + " " + msg.getMessageId() + " to "
     158                          + msg.getTarget().getIdentity().calculateHash().toBase64().substring(0,6) + " took " + msToSend
    159159                          + "/" + msg.getTransmissionTime());
    160160        }
     
    485485            if ( ((addr[0]&0xFF) == 192) && ((addr[1]&0xFF) == 168) ) return false;
    486486            if ((addr[0]&0xFF) >= 224) return false; // no multicast
     487            if ((addr[0]&0xFF) == 0) return false;
     488            if ( ((addr[0]&0xFF) == 169) && ((addr[1]&0xFF) == 254) ) return false;
    487489            return true; // or at least possible to be true
    488490        } else if (addr.length == 16) {
Note: See TracChangeset for help on using the changeset viewer.