From 3615a9b2358c9c863d541bb9ecd3f103f7d5bc1d Mon Sep 17 00:00:00 2001
From: zzz <zzz@i2pmail.org>
Date: Fri, 19 Mar 2021 11:36:17 -0400
Subject: [PATCH] SSU: Skip router addresses with introducers and '6' cap

for now, until implemented, see proposal 158
---
 .../java/src/net/i2p/router/transport/udp/UDPTransport.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/router/java/src/net/i2p/router/transport/udp/UDPTransport.java b/router/java/src/net/i2p/router/transport/udp/UDPTransport.java
index 5a533ca9e5..3ddc150005 100644
--- a/router/java/src/net/i2p/router/transport/udp/UDPTransport.java
+++ b/router/java/src/net/i2p/router/transport/udp/UDPTransport.java
@@ -2108,6 +2108,10 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
                 // introducers
                 if (getIPv6Config() == IPV6_ONLY)
                     continue;
+                // TODO support IPv6 introductions
+                String caps = addr.getOption(UDPAddress.PROP_CAPACITY);
+                if (caps != null && caps.contains(CAP_IPV6)   /* && !_haveIPv6Address */  )
+                    continue;
             }
             return addr;
         }
-- 
GitLab