added another fix for localhost addresses in seeds

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@4852 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2008-05-25 18:41:56 +00:00
parent 11e00a0849
commit 18ad12eceb

View File

@ -860,6 +860,7 @@ public class yacySeed {
if (ip == null) return "IP is null";
if (ip.length() < 8) return "IP is too short: " + ip;
if (!natLib.isProper(ip)) return "IP is not proper: " + ip; //this does not work with staticIP
if (ip.equals("localhost") || ip.equals("127.0.0.1") || (ip.startsWith("0:0:0:0:0:0:0:1"))) return "IP for localhost rejected";
// seedURL
final String seedURL = this.dna.get(SEEDLIST);