From 37cf32fd49ac149fca4b9751d1852a0337cfe7ab Mon Sep 17 00:00:00 2001 From: zzz Date: Fri, 3 Jul 2026 10:42:24 -0400 Subject: [PATCH] Profiles: Do not exclude L profiles if we are non-ff, low-bw to hopefully prevent netdb peer loss --- .../src/net/i2p/router/peermanager/ProfileManagerImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/router/java/src/net/i2p/router/peermanager/ProfileManagerImpl.java b/router/java/src/net/i2p/router/peermanager/ProfileManagerImpl.java index ac029b4f8..e853a219b 100644 --- a/router/java/src/net/i2p/router/peermanager/ProfileManagerImpl.java +++ b/router/java/src/net/i2p/router/peermanager/ProfileManagerImpl.java @@ -433,10 +433,11 @@ public class ProfileManagerImpl implements ProfileManager { * @param caps non-null from the peer's RI, used to determine if the profile will be created if it doesn't exist * @since 0.9.70 */ - private static boolean shouldCreate(String caps) { + private boolean shouldCreate(String caps) { return caps.indexOf('R') >= 0 && (caps.indexOf('f') >= 0 || - (caps.indexOf('L') < 0 && + // Exclude L if we are FF or high BW (OPX) + ((caps.indexOf('L') < 0 || (!_context.netDb().floodfillEnabled() && _context.bandwidthLimiter().getMaxShareBandwidth() < 128*1024)) && // possibly M and N also but there aren't that many of them caps.indexOf('E') < 0 && caps.indexOf('G') < 0));