mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
change seedfile upload ip check to allow intranet ip in intranet mode
- this allows to setup a principal peer in intranet environment
This commit is contained in:
parent
70bb3d1b38
commit
1fdcc2d67b
|
@ -754,7 +754,9 @@ public class Network
|
||||||
}
|
}
|
||||||
seedURL = new DigestURL(seedURLStr);
|
seedURL = new DigestURL(seedURLStr);
|
||||||
final String host = seedURL.getHost();
|
final String host = seedURL.getHost();
|
||||||
if (Domains.isIntranet(host)) { // check seedlist reacheable
|
if (Domains.isLocalhost(host) || (Domains.isIntranet(host) && !sb.isIntranetMode())) { // check seedlist reacheable
|
||||||
|
// TODO: this does not prevent setting a local hostname e.g. "http://testhost_8090/seedlist.txt" (fyi: never did)
|
||||||
|
// but the or part allows to setup a principal peer in intranet environment
|
||||||
final String errorMsg = "seedURL in local network rejected (local hosts can't be reached from outside)";
|
final String errorMsg = "seedURL in local network rejected (local hosts can't be reached from outside)";
|
||||||
log.warn("SaveSeedList: " + errorMsg);
|
log.warn("SaveSeedList: " + errorMsg);
|
||||||
return errorMsg;
|
return errorMsg;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user