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
pull/1/head
lotus 15 years ago
parent def4253555
commit 18729351e7

@ -73,6 +73,7 @@ public class UPnP {
try { try {
if (IGDs == null) IGDs = InternetGatewayDevice.getDevices(discoveryTimeout); if (IGDs == null) IGDs = InternetGatewayDevice.getDevices(discoveryTimeout);
localHostIP = Domains.myPublicLocalIP().getHostAddress(); localHostIP = Domains.myPublicLocalIP().getHostAddress();
if (localHostIP.startsWith("127.")) log.logWarning("found odd local address: " + localHostIP + "; UPnP may fail");
} catch (IOException e) { } catch (IOException e) {
init = false; init = false;
} }

Loading…
Cancel
Save