Changeset a51a6d57 for router


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

rename class

Location:
router/java/src/net/i2p/router/transport
Files:
1 edited
1 moved

Legend:

Unmodified
Added
Removed
  • 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.