mirror of
https://github.com/yacy/yacy_search_server.git
synced 2025-07-22 09:14:38 -04:00
fix RuntimeException in ConfigRobotsTxt_p in intranet mode
due to getIP returning null, by removing redundant property setting of "clientname" which is globally set by template engine
This commit is contained in:
@ -43,8 +43,9 @@ public class ConfigRobotsTxt_p {
|
||||
final Switchboard sb = (Switchboard) env;
|
||||
final servletProperties prop = new servletProperties();
|
||||
|
||||
final RobotsTxtConfig rbc = ((Switchboard)env).robotstxtConfig;
|
||||
prop.put("clientname", sb.peers.mySeed().getPublicAddress(sb.peers.mySeed().getIP()));
|
||||
final RobotsTxtConfig rbc = sb.robotstxtConfig;
|
||||
// globaly overwitten by template engine (removed to avoid risk of NPE in intranet mode)
|
||||
// prop.put("clientname", sb.peers.mySeed().getPublicAddress(sb.peers.mySeed().getIP()));
|
||||
|
||||
if (post != null) {
|
||||
if (post.containsKey("save")) {
|
||||
|
Reference in New Issue
Block a user