|
|
|
@ -43,6 +43,9 @@
|
|
|
|
|
// javac -classpath .:../Classes index.java
|
|
|
|
|
// if the shell's current path is HTROOT
|
|
|
|
|
|
|
|
|
|
import java.net.InetAddress;
|
|
|
|
|
import java.net.UnknownHostException;
|
|
|
|
|
|
|
|
|
|
import de.anomic.http.httpHeader;
|
|
|
|
|
import de.anomic.server.serverCore;
|
|
|
|
|
import de.anomic.server.serverObjects;
|
|
|
|
@ -65,8 +68,12 @@ public class welcome {
|
|
|
|
|
prop.put("peername", env.getConfig("peerName", "<nameless>"));
|
|
|
|
|
prop.put("peerdomain", env.getConfig("peerName", "<nameless>").toLowerCase());
|
|
|
|
|
prop.put("peeraddress", yacyCore.seedDB.mySeed.getAddress());
|
|
|
|
|
prop.put("hostname", serverCore.publicIP().getHostName());
|
|
|
|
|
prop.put("hostip", serverCore.publicIP().getHostAddress());
|
|
|
|
|
prop.put("hostname", serverCore.publicIP());
|
|
|
|
|
try{
|
|
|
|
|
prop.put("hostip", InetAddress.getByName(serverCore.publicIP()).getHostAddress());
|
|
|
|
|
}catch(UnknownHostException e){
|
|
|
|
|
prop.put("hostip", "Unknown Host Exception");
|
|
|
|
|
}
|
|
|
|
|
prop.put("port", env.getConfig("port", "8080"));
|
|
|
|
|
prop.put("clientip", header.get("CLIENTIP", ""));
|
|
|
|
|
|
|
|
|
|