Skip to content

Commit

Permalink
websocket error
Browse files Browse the repository at this point in the history
  • Loading branch information
ssrlive committed Oct 12, 2020
1 parent 9205d7b commit 86531b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/client/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -1304,7 +1304,9 @@ static void tls_cli_on_data_received(struct tls_cli_ctx* tls_cli, int status, co
pl != size ||
0 != strcmp(accept_val, calc_val))
{
PRINT_ERR("[TLS] error with status: %s", http_headers_get_status(hdrs));
char* tmp = socks5_address_to_string(tunnel->desired_addr, &malloc, true);
pr_err("[TLS] websocket error at \"%s\" with status: %s", tmp, http_headers_get_status(hdrs));
free(tmp);
tunnel->tunnel_shutdown(tunnel);
} else {
if (ctx->udp_data_ctx) {
Expand Down

0 comments on commit 86531b1

Please sign in to comment.