read cleint ip from X-Forwarded-For header. #1714

pull/1523/merge
hengyunabc 4 years ago
parent 7c71623f14
commit f9672d6470

@ -258,6 +258,7 @@ public class TunnelSocketFrameHandler extends SimpleChannelInboundHandler<WebSoc
info.setPort(inetSocketAddress.getPort()); info.setPort(inetSocketAddress.getPort());
} }
} else { } else {
info.setHost(host);
Integer port = HttpUtils.findClientPort(headers); Integer port = HttpUtils.findClientPort(headers);
if (port != null) { if (port != null) {
info.setPort(port); info.setPort(port);

Loading…
Cancel
Save