From 571e3c5c1362758deb7586f09a011621ba44d3ef Mon Sep 17 00:00:00 2001
From: jrandom <jrandom>
Date: Mon, 29 Nov 2004 02:09:27 +0000
Subject: [PATCH] 2004-11-28  jrandom     * Accept IP address detection changes
 with a 2-out-of-3 minimum.     * As long as the router is up, keep retrying
 to bind the I2CP listener.     * Decrease the java service wrapper ping
 frequency to once every 10       minutes, rather than once every 5 seconds.

---
 .../src/net/i2p/router/transport/tcp/TCPConnection.java     | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/router/java/src/net/i2p/router/transport/tcp/TCPConnection.java b/router/java/src/net/i2p/router/transport/tcp/TCPConnection.java
index bbcfc1fc58..7e36498b47 100644
--- a/router/java/src/net/i2p/router/transport/tcp/TCPConnection.java
+++ b/router/java/src/net/i2p/router/transport/tcp/TCPConnection.java
@@ -30,6 +30,7 @@ public class TCPConnection {
     private RouterIdentity _ident;
     private Hash _attemptedPeer;
     private TCPAddress _remoteAddress;
+    private String _shownAddress;
     private List _pendingMessages;
     private InputStream _in;
     private OutputStream _out;
@@ -49,6 +50,7 @@ public class TCPConnection {
         _pendingMessages = new ArrayList(4);
         _ident = null;
         _remoteAddress = null;
+        _shownAddress = null;
         _in = null;
         _out = null;
         _socket = null;
@@ -75,6 +77,10 @@ public class TCPConnection {
     public void setRemoteAddress(TCPAddress addr) { _remoteAddress = addr; }
     /** Who we initially were trying to contact */
     public void setAttemptedPeer(Hash peer) { _attemptedPeer = peer; }
+    /** What address the peer said we are reachable on */
+    public void setShownAddress(String ip) { _shownAddress = ip; }
+    /** What address the peer said we are reachable on */
+    public String getShownAddress() { return _shownAddress; } 
     
     /** 
      * Actually start processing the messages on the connection (and reading
-- 
GitLab