From 32d4c3e4c61e906b80345c0c3e1dbeb494f5b65e Mon Sep 17 00:00:00 2001 From: allo Date: Tue, 28 Feb 2006 08:57:20 +0000 Subject: [PATCH] static IP is proper git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1779 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/net/natLib.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/source/de/anomic/net/natLib.java b/source/de/anomic/net/natLib.java index 98b0ed96e..f6dd16171 100644 --- a/source/de/anomic/net/natLib.java +++ b/source/de/anomic/net/natLib.java @@ -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) );