Changeset d8980d1
- Timestamp:
- May 10, 2019 11:46:25 AM (2 years ago)
- Branches:
- master
- Children:
- 0a73303
- Parents:
- c7d0526
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
router/java/src/net/i2p/router/transport/GeoIP.java
rc7d0526 rd8980d1 126 126 * Blocking lookup of all pending IPs. 127 127 * 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() { 130 132 if (! _context.getBooleanPropertyDefaultTrue(PROP_GEOIP_ENABLED)) { 131 133 _pendingSearch.clear(); … … 497 499 /** 498 500 * Add to the list needing lookup 501 * Public for BundleRouterInfos 502 * 499 503 * @param ip IPv4 or IPv6 500 504 */ 501 void add(String ip) {505 public void add(String ip) { 502 506 byte[] pib = Addresses.getIP(ip); 503 507 if (pib == null) return; … … 507 511 /** 508 512 * Add to the list needing lookup 513 * Public for BundleRouterInfos 514 * 509 515 * @param ip IPv4 or IPv6 510 516 */ 511 void add(byte ip[]) {517 public void add(byte ip[]) { 512 518 add(toLong(ip)); 513 519 } … … 526 532 /** 527 533 * Get the country for an IP from the cache. 534 * Public for BundleRouterInfos 535 * 528 536 * @param ip IPv4 or IPv6 529 537 * @return lower-case code, generally two letters, or null. 530 538 */ 531 String get(String ip) {539 public String get(String ip) { 532 540 byte[] pib = Addresses.getIP(ip); 533 541 if (pib == null) return null; … … 594 602 /** 595 603 * Get the country for a country code 604 * Public for BundleRouterInfos 605 * 596 606 * @param code two-letter lower case code 597 607 * @return untranslated name or null 598 608 */ 599 String fullName(String code) {609 public String fullName(String code) { 600 610 return _codeToName.get(code); 601 611 }
Note: See TracChangeset
for help on using the changeset viewer.