Changeset c5b6a4e for router


Ignore:
Timestamp:
Mar 7, 2018 9:24:54 PM (2 years ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
c626bb6
Parents:
7433eeb
Message:

NetDB: More floodfill checks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • router/java/src/net/i2p/router/networkdb/kademlia/FloodfillMonitorJob.java

    r7433eeb rc5b6a4e  
    1212import net.i2p.router.RouterContext;
    1313import net.i2p.router.peermanager.PeerProfile;
     14import net.i2p.router.transport.TransportManager;
     15import net.i2p.router.transport.TransportUtil;
    1416import net.i2p.router.transport.udp.UDPTransport;
    1517import net.i2p.router.util.EventLog;
     
    108110
    109111        if (getContext().getBooleanProperty(UDPTransport.PROP_LAPTOP_MODE))
     112            return false;
     113
     114        // need IPv4 - The setting is the same for both SSU and NTCP, so just take the SSU one
     115        if (TransportUtil.getIPv6Config(getContext(), "SSU") == TransportUtil.IPv6Config.IPV6_ONLY)
     116            return false;
     117
     118        // need both transports
     119        if (!TransportManager.isNTCPEnabled(getContext()))
     120            return false;
     121        if (!getContext().getBooleanPropertyDefaultTrue(TransportManager.PROP_ENABLE_UDP))
    110122            return false;
    111123
Note: See TracChangeset for help on using the changeset viewer.