mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 21:27:40 +00:00
Improved handling of no tunnel.
This commit is contained in:
@@ -148,14 +148,7 @@ public abstract class GuacamoleHTTPTunnelServlet extends HttpServlet {
|
|||||||
// Failed to connect
|
// Failed to connect
|
||||||
else {
|
else {
|
||||||
logger.info("Connection from {} failed.", request.getRemoteAddr());
|
logger.info("Connection from {} failed.", request.getRemoteAddr());
|
||||||
|
throw new GuacamoleResourceNotFoundException("No tunnel created.");
|
||||||
try {
|
|
||||||
// Send error to client
|
|
||||||
response.sendError(HttpServletResponse.SC_NOT_FOUND);
|
|
||||||
}
|
|
||||||
catch (IOException e) {
|
|
||||||
throw new GuacamoleServerException(e);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user