Changeset a51a6d57


Ignore:
Timestamp:
Jan 29, 2019 1:28:11 PM (14 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
1bb57c4
Parents:
8465fe7
Message:

rename class

Files:
2 edited
1 moved

Legend:

Unmodified
Added
Removed
  • installer/tools/java/src/net/i2p/router/networkdb/kademlia/BundleRouterInfos.java

    r8465fe7 ra51a6d57  
    3030import net.i2p.data.router.RouterAddress;
    3131import net.i2p.data.router.RouterInfo;
    32 import net.i2p.router.transport.BadCountries;
     32import net.i2p.router.transport.StrictCountries;
    3333import net.i2p.router.transport.GeoIP;
    3434import net.i2p.util.FileUtil;
     
    228228                String co = geoIP.get(e.getKey());
    229229                if (co != null) {
    230                     if (BadCountries.contains(co)) {
     230                    if (StrictCountries.contains(co)) {
    231231                        String name = e.getValue();
    232232                        File toFile = new File(toDir, name);
  • router/java/src/net/i2p/router/transport/CommSystemFacadeImpl.java

    r8465fe7 ra51a6d57  
    439439    public boolean isInBadCountry() {
    440440        String us = getOurCountry();
    441         return (us != null && BadCountries.contains(us)) || _context.getBooleanProperty("router.forceBadCountry");
     441        return (us != null && StrictCountries.contains(us)) || _context.getBooleanProperty("router.forceBadCountry");
    442442    }
    443443
     
    450450    public boolean isInBadCountry(Hash peer) {
    451451        String c = getCountry(peer);
    452         return c != null && BadCountries.contains(c);
     452        return c != null && StrictCountries.contains(c);
    453453    }
    454454
     
    464464            return false;
    465465        String c = _geoIP.get(ip);
    466         return c != null && BadCountries.contains(c);
     466        return c != null && StrictCountries.contains(c);
    467467    }
    468468
  • router/java/src/net/i2p/router/transport/StrictCountries.java

    r8465fe7 ra51a6d57  
    77
    88/**
    9  *  Maintain a list of bad places.
     9 *  Maintain a list of countries that may have
     10 *  tight restrictions on applications like ours.
    1011 *  @since 0.8.13
    1112 */
    12 public abstract class BadCountries {
     13public abstract class StrictCountries {
    1314
    1415    private static final Set<String> _countries;
Note: See TracChangeset for help on using the changeset viewer.