Revert "Update javadoc with the truth about peers' internalHostName."

This reverts commit ec47182263.

Ummm? I misread the code? So embarassing. For some reason I thought it
was using the public hostname for all connections. Perhaps I misread
the 'hostName' local variable in a PeerNode method for the 'hostName'
in the record.
This commit is contained in:
Ray J. Greenwell
2018-01-05 15:20:29 -08:00
parent ec47182263
commit 61bee1b160
2 changed files with 4 additions and 10 deletions
@@ -765,12 +765,9 @@ public abstract class PeerManager
}
/**
* Returns the internal hostname <strike>to use when connecting to the specified peer</strike>
* or null if the peer is not currently connected to this server.
* <strike>Peers connect to one another via their internal hostname.
* Do not publish this data to clients out on the Internets.</strike>
* NOTE: <b>Peers now use the public host name for connections.</b> This method may be
* deprecated in the future.
* Returns the internal hostname to use when connecting to the specified peer or null if the
* peer is not currently connected to this server. Peers connect to one another via their
* internal hostname. Do not publish this data to clients out on the Internets.
*/
public String getPeerInternalHostName (String nodeName)
{
@@ -113,10 +113,7 @@ public class PeerNode
}
/**
* Returns the "internal" hostname
* <strike>for internal clients to use when connecting to this peer</strike> which is
* no longer really used. NOTE: <b>Peers now use the public host name for connections.</b>
* This method may be deprecated in the future.
* Returns the hostname for internal clients to use when connecting to this peer.
*/
public String getInternalHostName ()
{