mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-10-28 07:33:08 +00:00
GUACAMOLE-47: Remove unnecessary checks of getRemoteHost/getRemoteAddr.
This commit is contained in:
@@ -69,16 +69,10 @@ public class APIRequest extends HttpServletRequestWrapper {
|
|||||||
super(request);
|
super(request);
|
||||||
|
|
||||||
// Grab the remote host info.
|
// Grab the remote host info.
|
||||||
if (request.getRemoteHost() != null && !request.getRemoteHost().isEmpty())
|
this.remoteHost = request.getRemoteHost();
|
||||||
this.remoteHost = request.getRemoteHost();
|
|
||||||
else
|
|
||||||
this.remoteHost = null;
|
|
||||||
|
|
||||||
// Grab the remote ip info.
|
// Grab the remote ip info.
|
||||||
if(request.getRemoteHost() != null && !request.getRemoteAddr().isEmpty())
|
this.remoteAddr = request.getRemoteAddr();
|
||||||
this.remoteAddr = request.getRemoteAddr();
|
|
||||||
else
|
|
||||||
this.remoteAddr = null;
|
|
||||||
|
|
||||||
// Copy parameters from given MultivaluedMap
|
// Copy parameters from given MultivaluedMap
|
||||||
this.parameters = new HashMap<String, String[]>(parameters.size());
|
this.parameters = new HashMap<String, String[]>(parameters.size());
|
||||||
|
|||||||
Reference in New Issue
Block a user