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:
@@ -765,12 +765,9 @@ public abstract class PeerManager
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the internal hostname <strike>to use when connecting to the specified peer</strike>
|
* Returns the internal hostname to use when connecting to the specified peer or null if the
|
||||||
* or null if the peer is not currently connected to this server.
|
* peer is not currently connected to this server. Peers connect to one another via their
|
||||||
* <strike>Peers connect to one another via their internal hostname.
|
* internal hostname. Do not publish this data to clients out on the Internets.
|
||||||
* 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.
|
|
||||||
*/
|
*/
|
||||||
public String getPeerInternalHostName (String nodeName)
|
public String getPeerInternalHostName (String nodeName)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -113,10 +113,7 @@ public class PeerNode
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the "internal" hostname
|
* Returns the hostname for internal clients to use when connecting to this peer.
|
||||||
* <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.
|
|
||||||
*/
|
*/
|
||||||
public String getInternalHostName ()
|
public String getInternalHostName ()
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user