- fix for wrong public IP if no hostname was set and IP was from range 192.168.*.*

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3063 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
karlchenofhell 18 years ago
parent 99664d6267
commit 52abbd4131

@ -501,7 +501,7 @@ public final class serverCore extends serverAbstractThread implements serverThre
if ((b0 != 10) && // class A reserved
(b0 != 127) && // loopback
((b0 != 172) || (b1 < 16) || (b1 > 31)) && // class B reserved
((b0 != 192) || (b0 != 168)) && // class C reserved
((b0 != 192) || (b1 != 168)) && // class C reserved
(ia[i].getHostAddress().indexOf(":") < 0)
) return ia[i];
}

Loading…
Cancel
Save