|
|
@ -1117,7 +1117,15 @@ public class Seed implements Cloneable, Comparable<Seed>, Comparator<Seed>
|
|
|
|
final URL url = new URL(seedURL);
|
|
|
|
final URL url = new URL(seedURL);
|
|
|
|
final String host = url.getHost();
|
|
|
|
final String host = url.getHost();
|
|
|
|
if (Domains.isIntranet(host)) {
|
|
|
|
if (Domains.isIntranet(host)) {
|
|
|
|
return "seedURL in local network rejected";
|
|
|
|
// network.unit.domain = any returns isIntranet() always true (because noLocalCheck is set true)
|
|
|
|
|
|
|
|
// but seedlist on intranet host must be allowed -> check for intranet mode and deny "localhost" or loopback IP
|
|
|
|
|
|
|
|
if (Switchboard.getSwitchboard().isIntranetMode() ) {
|
|
|
|
|
|
|
|
if (Domains.isLocalhost(host)) {
|
|
|
|
|
|
|
|
return "seedURL on local host rejected ("+host+")";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
return "seedURL in local network rejected ("+host+")";
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
} catch (final MalformedURLException e ) {
|
|
|
|
} catch (final MalformedURLException e ) {
|
|
|
|
return "seedURL malformed";
|
|
|
|
return "seedURL malformed";
|
|
|
|