SSU: Don't publish B cap when snatted

as suggested by orignal
This commit is contained in:
zzz
2022-12-13 06:27:41 -05:00
parent 580f954254
commit 20f414c7fa

View File

@@ -2915,7 +2915,9 @@ public class UDPTransport extends TransportImpl implements TimedWeightedPriority
// if we have explicit external addresses, they had better be reachable
String caps;
if (introducersRequired || !canIntroduce(isIPv6)) {
if (isSnatted()) {
caps = isIPv6 ? CAP_IPV6 : CAP_IPV4;
} else if (introducersRequired || !canIntroduce(isIPv6)) {
if (!directIncluded) {
if (isIPv6)
caps = CAP_TESTING_6;