Changeset 1f088ff


Ignore:
Timestamp:
Mar 1, 2016 1:42:03 PM (4 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
6d40e870
Parents:
50d038a
Message:

NetDb?: Look in all SSU addresses for introducers in the expiration check

Location:
router/java/src/net/i2p
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/data/router/RouterInfo.java

    r50d038a r1f088ff  
    188188     */
    189189    public Collection<RouterAddress> getAddresses() {
    190             return Collections.unmodifiableCollection(_addresses);
     190            return Collections.unmodifiableList(_addresses);
    191191    }
    192192
  • router/java/src/net/i2p/router/networkdb/kademlia/KademliaNetworkDatabaseFacade.java

    r50d038a r1f088ff  
    985985            if (routerInfo.getCapabilities().indexOf(Router.CAPABILITY_UNREACHABLE) >= 0)
    986986                return "Old peer and thinks it is unreachable";
    987             // FIXME check all SSU addresses, not just first
    988             RouterAddress ra = routerInfo.getTargetAddress("SSU");
    989             if (ra != null) {
     987            // Just check all the addresses, faster than getting just the SSU ones
     988            for (RouterAddress ra : routerInfo.getAddresses()) {
    990989                // Introducers change often, introducee will ping introducer for 2 hours
    991990                if (ra.getOption("ihost0") != null)
Note: See TracChangeset for help on using the changeset viewer.