From 4336dc441e483d36201fb06886a2d94685f68fd2 Mon Sep 17 00:00:00 2001
From: zzz <zzz@mail.i2p>
Date: Sat, 20 Dec 2008 01:04:19 +0000
Subject: [PATCH] Remove spurious UDP warning on startup

---
 .../java/src/net/i2p/router/web/SummaryHelper.java              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java
index 279650ebb7..2b445a0042 100644
--- a/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java
+++ b/apps/routerconsole/java/src/net/i2p/router/web/SummaryHelper.java
@@ -144,7 +144,7 @@ public class SummaryHelper {
             case CommSystemFacade.STATUS_UNKNOWN: // fallthrough
             default:
                 ra = _context.router().getRouterInfo().getTargetAddress("UDP");
-                if (ra == null) {
+                if (ra == null && _context.router().getUptime() > 5*60*1000) {
                     if (_context.getProperty(ConfigNetHelper.PROP_I2NP_NTCP_HOSTNAME) == null ||
                         _context.getProperty(ConfigNetHelper.PROP_I2NP_NTCP_PORT) == null)
                         return "ERR-UDP Disabled and Inbound TCP host/port not set";
-- 
GitLab