replace one more arbitrary CONNECTION_PROP_CLIENTIP header with std.

getRemoteAddr()
pull/97/head
reger 8 years ago
parent 14e73f5b9b
commit de33c7e765

@ -25,7 +25,6 @@
import java.util.HashMap;
import java.util.Iterator;
import net.yacy.cora.protocol.HeaderFramework;
import net.yacy.cora.protocol.RequestHeader;
import net.yacy.peers.Network;
import net.yacy.peers.Seed;
@ -126,8 +125,7 @@ public final class Settings_p {
prop.put("serveruser","server");
// clientIP
prop.putXML("clientIP", header.get(HeaderFramework.CONNECTION_PROP_CLIENTIP, "<unknown>")); // read an artificial header addendum
prop.putXML("clientIP", header.getRemoteAddr() == null ? "<unknown>" : header.getRemoteAddr());
/*
* seed upload settings
*/

Loading…
Cancel
Save