mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-23 22:26:01 +00:00
throw exception when host cache returns 0.0.0.0 for any host (trying to track down a strange problem)
This commit is contained in:
@@ -107,6 +107,9 @@ public class DefaultServerCache extends ServerCache implements Closeable, Serial
|
||||
String hkey = new String(hostname); // ensure private minimal key
|
||||
return new CrawlHost(hkey);
|
||||
}});
|
||||
if ("0.0.0.0".equals(host.getIP().getHostAddress())) {
|
||||
throw new IllegalStateException("got suspicious value 0.0.0.0 for " + hostname);
|
||||
}
|
||||
return host;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user