mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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:
parent
11e00a0849
commit
18ad12eceb
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue
Block a user