Changeset d8980d1 for router


Ignore:
Timestamp:
May 10, 2019 11:46:25 AM (14 months ago)
Author:
zzz <zzz@…>
Branches:
master
Children:
0a73303
Parents:
c7d0526
Message:

Transport: Revert GeoIP changes that broke BundleRouterInfos?

File:
1 edited

Legend:

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

    rc7d0526 rd8980d1  
    126126     * Blocking lookup of all pending IPs.
    127127     * Results will be added to the table and available via get() after completion.
    128      */
    129     void blockingLookup() {
     128     *
     129     * Public for BundleRouterInfos
     130     */
     131    public void blockingLookup() {
    130132        if (! _context.getBooleanPropertyDefaultTrue(PROP_GEOIP_ENABLED)) {
    131133            _pendingSearch.clear();
     
    497499    /**
    498500     * Add to the list needing lookup
     501     * Public for BundleRouterInfos
     502     *
    499503     * @param ip IPv4 or IPv6
    500504     */
    501     void add(String ip) {
     505    public void add(String ip) {
    502506        byte[] pib = Addresses.getIP(ip);
    503507        if (pib == null) return;
     
    507511    /**
    508512     * Add to the list needing lookup
     513     * Public for BundleRouterInfos
     514     *
    509515     * @param ip IPv4 or IPv6
    510516     */
    511     void add(byte ip[]) {
     517    public void add(byte ip[]) {
    512518        add(toLong(ip));
    513519    }
     
    526532    /**
    527533     * Get the country for an IP from the cache.
     534     * Public for BundleRouterInfos
     535     *
    528536     * @param ip IPv4 or IPv6
    529537     * @return lower-case code, generally two letters, or null.
    530538     */
    531     String get(String ip) {
     539    public String get(String ip) {
    532540        byte[] pib = Addresses.getIP(ip);
    533541        if (pib == null) return null;
     
    594602    /**
    595603     * Get the country for a country code
     604     * Public for BundleRouterInfos
     605     *
    596606     * @param code two-letter lower case code
    597607     * @return untranslated name or null
    598608     */
    599     String fullName(String code) {
     609    public String fullName(String code) {
    600610        return _codeToName.get(code);
    601611    }
Note: See TracChangeset for help on using the changeset viewer.