From de33c7e7658eaf1c8f8dd9b74b97a3f6b461a7c9 Mon Sep 17 00:00:00 2001 From: reger Date: Mon, 5 Dec 2016 00:11:03 +0100 Subject: [PATCH] replace one more arbitrary CONNECTION_PROP_CLIENTIP header with std. getRemoteAddr() --- htroot/Settings_p.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/htroot/Settings_p.java b/htroot/Settings_p.java index 8453cc87d..e349e8c42 100644 --- a/htroot/Settings_p.java +++ b/htroot/Settings_p.java @@ -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, "")); // read an artificial header addendum - + prop.putXML("clientIP", header.getRemoteAddr() == null ? "" : header.getRemoteAddr()); /* * seed upload settings */