Changeset 613f90b


Ignore:
Timestamp:
Aug 23, 2014 2:22:06 PM (6 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
34d37046
Parents:
6ff500f
Message:

SSU: Drop peer tests as Bob from unestablished Alices

File:
1 edited

Legend:

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

    r6ff500f r613f90b  
    585585                    return;
    586586                }
     587                if (_transport.getPeerState(from) == null) {
     588                    // Require an existing session to start a test,
     589                    // as a way of preventing trouble
     590                    if (_log.shouldLog(Log.WARN))
     591                        _log.warn("No session, dropping new test from Alice " + Addresses.toString(fromIP, fromPort));
     592                    return;
     593                }
    587594                if (_log.shouldLog(Log.DEBUG))
    588595                    _log.debug("test IP/port are blank coming from " + from + ", assuming we are Bob and they are alice");
Note: See TracChangeset for help on using the changeset viewer.