static IP is proper

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1779 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 19 years ago
parent f96238e9be
commit 32d4c3e4c6

@ -130,6 +130,10 @@ public class natLib {
if(yacyDebugMode.equals("true")){
return true;
}
//support for staticIP
if(sb.getConfig("staticIP", "").equals(ip)){
return true;
}
if (ip == null) return false;
if (ip.indexOf(":") >= 0) return false; // ipv6...
return ( isNotLocal(ip)) && (isIP(ip) );

Loading…
Cancel
Save