GUACAMOLE-208: Report network failures to connect with UPSTREAM_NOT_FOUND.
This commit is contained in:
parent
a78d52e615
commit
4f4643dd2f
@ -483,7 +483,7 @@ guac_common_ssh_session* guac_common_ssh_create_session(guac_client* client,
|
|||||||
|
|
||||||
/* If unable to connect to anything, fail */
|
/* If unable to connect to anything, fail */
|
||||||
if (current_address == NULL) {
|
if (current_address == NULL) {
|
||||||
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR,
|
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_NOT_FOUND,
|
||||||
"Unable to connect to any addresses.");
|
"Unable to connect to any addresses.");
|
||||||
close(fd);
|
close(fd);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
@ -352,7 +352,8 @@ static telnet_t* __guac_telnet_create_session(guac_client* client) {
|
|||||||
|
|
||||||
/* If unable to connect to anything, fail */
|
/* If unable to connect to anything, fail */
|
||||||
if (current_address == NULL) {
|
if (current_address == NULL) {
|
||||||
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR, "Unable to connect to any addresses.");
|
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_NOT_FOUND,
|
||||||
|
"Unable to connect to any addresses.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -202,7 +202,8 @@ void* guac_vnc_client_thread(void* data) {
|
|||||||
|
|
||||||
/* If the final connect attempt fails, return error */
|
/* If the final connect attempt fails, return error */
|
||||||
if (!rfb_client) {
|
if (!rfb_client) {
|
||||||
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_ERROR, "Unable to connect to VNC server.");
|
guac_client_abort(client, GUAC_PROTOCOL_STATUS_UPSTREAM_NOT_FOUND,
|
||||||
|
"Unable to connect to VNC server.");
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user