From ec471822631568fbb47a7de7e20bed1918c052f3 Mon Sep 17 00:00:00 2001 From: "Ray J. Greenwell" Date: Fri, 5 Jan 2018 14:36:01 -0800 Subject: [PATCH] Update javadoc with the truth about peers' internalHostName. --- .../com/threerings/presents/peer/server/PeerManager.java | 9 ++++++--- .../com/threerings/presents/peer/server/PeerNode.java | 5 ++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/core/src/main/java/com/threerings/presents/peer/server/PeerManager.java b/core/src/main/java/com/threerings/presents/peer/server/PeerManager.java index 3f70362ed..e032e802c 100644 --- a/core/src/main/java/com/threerings/presents/peer/server/PeerManager.java +++ b/core/src/main/java/com/threerings/presents/peer/server/PeerManager.java @@ -765,9 +765,12 @@ public abstract class PeerManager } /** - * 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. + * 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. + * NOTE: Peers now use the public host name for connections. This method may be + * deprecated in the future. */ public String getPeerInternalHostName (String nodeName) { diff --git a/core/src/main/java/com/threerings/presents/peer/server/PeerNode.java b/core/src/main/java/com/threerings/presents/peer/server/PeerNode.java index 0a062e1a8..283863a29 100644 --- a/core/src/main/java/com/threerings/presents/peer/server/PeerNode.java +++ b/core/src/main/java/com/threerings/presents/peer/server/PeerNode.java @@ -113,7 +113,10 @@ public class PeerNode } /** - * Returns the hostname for internal clients to use when connecting to this peer. + * Returns the "internal" hostname + * for internal clients to use when connecting to this peer which is + * no longer really used. NOTE: Peers now use the public host name for connections. + * This method may be deprecated in the future. */ public String getInternalHostName () {