forked from I2P_Developers/i2p.i2p
Switch from 'host name' to 'hostname'
This commit is contained in:
@@ -215,11 +215,11 @@ public class RouterAddress extends DataStructureImpl {
|
||||
|
||||
/**
|
||||
* Caching version of InetAddress.getByName(getOption("host")).getAddress(), which is slow.
|
||||
* Caches numeric host names, and negative caches also.
|
||||
* Caches numeric hostnames, and negative caches also.
|
||||
*
|
||||
* As of 0.9.32, this works for literal IP addresses only, and does NOT resolve host names.
|
||||
* If a host name is specified in the options, this will return null.
|
||||
* Use getHost() if you need the host name.
|
||||
* As of 0.9.32, this works for literal IP addresses only, and does NOT resolve hostnames.
|
||||
* If a hostname is specified in the options, this will return null.
|
||||
* Use getHost() if you need the hostname.
|
||||
*
|
||||
* @return IP or null
|
||||
* @since 0.9.3
|
||||
@@ -228,7 +228,7 @@ public class RouterAddress extends DataStructureImpl {
|
||||
if (_ip == NOT_LOOKED_UP) {
|
||||
// Only look up once, even if it fails, so we don't generate excessive DNS lookups.
|
||||
// The lifetime of a RouterAddress object is a few hours at most,
|
||||
// it will get republished or expired, so it's OK even for host names.
|
||||
// it will get republished or expired, so it's OK even for hostnames.
|
||||
String host = getHost();
|
||||
if (host != null)
|
||||
_ip = Addresses.getIPOnly(host);
|
||||
|
||||
@@ -26,7 +26,7 @@ import net.i2p.util.Log;
|
||||
|
||||
/**
|
||||
* Look up the lease of a hash, to convert it to a Destination for the client.
|
||||
* Or, since 0.9.11, lookup a host name in the naming service.
|
||||
* Or, since 0.9.11, lookup a hostname in the naming service.
|
||||
*/
|
||||
class LookupDestJob extends JobImpl {
|
||||
private final Log _log;
|
||||
|
||||
@@ -97,7 +97,7 @@ class SSLClientListenerRunner extends ClientListenerRunner {
|
||||
if (success) {
|
||||
_log.logAlways(Log.INFO, "Created self-signed certificate for " + cname + " in keystore: " + ks.getAbsolutePath() + "\n" +
|
||||
"The certificate was generated randomly, and is not associated with your " +
|
||||
"IP address, host name, router identity, or destination keys.");
|
||||
"IP address, hostname, router identity, or destination keys.");
|
||||
} else {
|
||||
_log.error("Failed to create I2CP SSL keystore.\n" +
|
||||
"This is for the Sun/Oracle keytool, others may be incompatible.\n" +
|
||||
|
||||
@@ -405,7 +405,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
|
||||
* Collect the IPs for all routers in the DB, and queue them for lookup,
|
||||
* then fire off the periodic lookup task for the first time.
|
||||
*
|
||||
* As of 0.9.32, works only for literal IPs, ignores host names.
|
||||
* As of 0.9.32, works only for literal IPs, ignores hostnames.
|
||||
*/
|
||||
private class QueueAll implements SimpleTimer.TimedEvent {
|
||||
public void timeReached() {
|
||||
@@ -508,7 +508,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
|
||||
* Not recommended for our local router hash, as we may not be either in the cache or netdb,
|
||||
* or may not be publishing an IP.
|
||||
*
|
||||
* As of 0.9.32, works only for literal IPs, returns null for host names.
|
||||
* As of 0.9.32, works only for literal IPs, returns null for hostnames.
|
||||
*
|
||||
* @param peer not ourselves - use getOurCountry() for that
|
||||
* @return two-letter lower-case country code or null
|
||||
@@ -532,7 +532,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
|
||||
* Return first IP (v4 or v6) we find, any transport.
|
||||
* Not validated, may be local, etc.
|
||||
*
|
||||
* As of 0.9.32, works only for literal IPs, returns null for host names.
|
||||
* As of 0.9.32, works only for literal IPs, returns null for hostnames.
|
||||
*
|
||||
* @return IP or null
|
||||
*/
|
||||
@@ -549,7 +549,7 @@ public class CommSystemFacadeImpl extends CommSystemFacade {
|
||||
* Return first valid IP (v4 or v6) we find, any transport.
|
||||
* Local and other invalid IPs will not be returned.
|
||||
*
|
||||
* As of 0.9.32, works only for literal IPs, returns null for host names.
|
||||
* As of 0.9.32, works only for literal IPs, returns null for hostnames.
|
||||
*
|
||||
* @return IP or null
|
||||
* @since 0.9.18
|
||||
|
||||
@@ -865,7 +865,7 @@ class EventPumper implements Runnable {
|
||||
con.setKey(key);
|
||||
RouterAddress naddr = con.getRemoteAddress();
|
||||
try {
|
||||
// no DNS lookups, do not use host names
|
||||
// no DNS lookups, do not use hostnames
|
||||
int port = naddr.getPort();
|
||||
byte[] ip = naddr.getIP();
|
||||
if (port <= 0 || ip == null)
|
||||
|
||||
@@ -205,7 +205,7 @@ class UDPAddress {
|
||||
public String getHost() { return _host; }
|
||||
|
||||
/**
|
||||
* As of 0.9.32, will NOT resolve host names.
|
||||
* As of 0.9.32, will NOT resolve hostnames.
|
||||
*
|
||||
* @return InetAddress or null
|
||||
*/
|
||||
@@ -228,7 +228,7 @@ class UDPAddress {
|
||||
int getIntroducerCount() { return (_introAddresses == null ? 0 : _introAddresses.length); }
|
||||
|
||||
/**
|
||||
* As of 0.9.32, will NOT resolve host names.
|
||||
* As of 0.9.32, will NOT resolve hostnames.
|
||||
*
|
||||
* @throws NullPointerException if getIntroducerCount() == 0
|
||||
* @throws ArrayIndexOutOfBoundsException if i < 0 or i >= getIntroducerCount()
|
||||
@@ -321,7 +321,7 @@ class UDPAddress {
|
||||
/**
|
||||
* Caching version of InetAddress.getByName(host), which is slow.
|
||||
* Caches numeric IPs only.
|
||||
* As of 0.9.32, will NOT resolve host names.
|
||||
* As of 0.9.32, will NOT resolve hostnames.
|
||||
*
|
||||
* Unlike InetAddress.getByName(), we do NOT allow numeric IPs
|
||||
* of the form d.d.d, d.d, or d, as these are almost certainly mistakes.
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
* - Fixed isRootDevice() to check the ST header.
|
||||
* 11/19/04
|
||||
* - Theo Beisch <theo.beisch@gmx.de>
|
||||
* - Changed getRemoteAddress() to return the adresss instead of the host name.
|
||||
* - Changed getRemoteAddress() to return the adresss instead of the hostname.
|
||||
*
|
||||
******************************************************************/
|
||||
|
||||
|
||||
Reference in New Issue
Block a user