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
pull/56/head
reger 9 years ago
parent 6384b7d82e
commit 19509438d9

@ -43,8 +43,9 @@ public class ConfigRobotsTxt_p {
final Switchboard sb = (Switchboard) env; final Switchboard sb = (Switchboard) env;
final servletProperties prop = new servletProperties(); final servletProperties prop = new servletProperties();
final RobotsTxtConfig rbc = ((Switchboard)env).robotstxtConfig; final RobotsTxtConfig rbc = sb.robotstxtConfig;
prop.put("clientname", sb.peers.mySeed().getPublicAddress(sb.peers.mySeed().getIP())); // 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 != null) {
if (post.containsKey("save")) { if (post.containsKey("save")) {

Loading…
Cancel
Save