|
|
@ -1164,6 +1164,15 @@ public final class httpd implements serverHandler {
|
|
|
|
: Integer.toString(serverCore.getPortNr(switchboard.getConfig("port", "8080"))));
|
|
|
|
: Integer.toString(serverCore.getPortNr(switchboard.getConfig("port", "8080"))));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// if peer has public address it will be used
|
|
|
|
|
|
|
|
if (yacyCore.seedDB.mySeed().getPublicAddress() != null) {
|
|
|
|
|
|
|
|
tp.put("extAddress", yacyCore.seedDB.mySeed().getPublicAddress());
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
// otherwise the local ip address will be used
|
|
|
|
|
|
|
|
else {
|
|
|
|
|
|
|
|
tp.put("extAddress", tp.get("host", "127.0.0.1") + ":" + tp.get("port", "8080"));
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
tp.put("peerName", yacyCore.seedDB.mySeed().getName());
|
|
|
|
tp.put("peerName", yacyCore.seedDB.mySeed().getName());
|
|
|
|
tp.put("errorMessageType", errorcase);
|
|
|
|
tp.put("errorMessageType", errorcase);
|
|
|
|
tp.put("httpStatus", Integer.toString(httpStatusCode) + " " + httpStatusText);
|
|
|
|
tp.put("httpStatus", Integer.toString(httpStatusCode) + " " + httpStatusText);
|
|
|
|