Author: toad
Date: 2007-07-04 20:53:46 +0000 (Wed, 04 Jul 2007)
New Revision: 13930

Modified:
   trunk/freenet/src/freenet/node/NodeIPDetector.java
   trunk/freenet/src/freenet/node/NodeIPPortDetector.java
Log:
comments

Modified: trunk/freenet/src/freenet/node/NodeIPDetector.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeIPDetector.java  2007-07-04 20:48:21 UTC 
(rev 13929)
+++ trunk/freenet/src/freenet/node/NodeIPDetector.java  2007-07-04 20:53:46 UTC 
(rev 13930)
@@ -80,8 +80,7 @@
         * What is my IP address? Use all globally available information 
(everything which isn't
         * specific to a given port i.e. opennet or darknet) to determine our 
current IP addresses.
         * Will include more than one IP in many cases when we are not strictly 
multi-homed. For 
-        * example, if we have a DNS name set, we will usually return an IP as 
well; if we are 
-        * behind a NAT we may return both a rewritten port number and the 
original; etc.
+        * example, if we have a DNS name set, we will usually return an IP as 
well.
         * 
         * Will warn the user with a UserAlert if we don't have sufficient 
information.
         */

Modified: trunk/freenet/src/freenet/node/NodeIPPortDetector.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeIPPortDetector.java      2007-07-04 
20:48:21 UTC (rev 13929)
+++ trunk/freenet/src/freenet/node/NodeIPPortDetector.java      2007-07-04 
20:53:46 UTC (rev 13930)
@@ -56,6 +56,12 @@
                return addresses;
        }

+       /**
+        * Get our Peer's. This is a list of IP:port's at which we might be 
contactable. Some of them
+        * will have the same port as the listenPort, but if we are behind a 
NAT which rewrites our
+        * port number, some of them may not. (If we're behind a symmetric NAT 
which rewrites it 
+        * differently for each connection, we're stuffed, and we tell the 
user).
+        */
        Peer[] detectPrimaryPeers() {
                Vector addresses = new Vector();
                FreenetInetAddress[] addrs = detectPrimaryIPAddress();


Reply via email to