From 18729351e74106452222c5a8495d0c806db3bb5e Mon Sep 17 00:00:00 2001 From: lotus Date: Sun, 31 Oct 2010 20:05:59 +0000 Subject: [PATCH] upnp: hint for wrongly detected local ip address git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@7286 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/net/UPnP.java | 1 + 1 file changed, 1 insertion(+) diff --git a/source/de/anomic/net/UPnP.java b/source/de/anomic/net/UPnP.java index 7d4e7a399..1f07990c6 100644 --- a/source/de/anomic/net/UPnP.java +++ b/source/de/anomic/net/UPnP.java @@ -73,6 +73,7 @@ public class UPnP { try { if (IGDs == null) IGDs = InternetGatewayDevice.getDevices(discoveryTimeout); localHostIP = Domains.myPublicLocalIP().getHostAddress(); + if (localHostIP.startsWith("127.")) log.logWarning("found odd local address: " + localHostIP + "; UPnP may fail"); } catch (IOException e) { init = false; }