Add debug log for socket creation failure

parent de7f84c5
...@@ -469,6 +469,7 @@ static int handle_proxy_request(int client_fd, wssshd_state_t *state, const wsss ...@@ -469,6 +469,7 @@ static int handle_proxy_request(int client_fd, wssshd_state_t *state, const wsss
// Connect to wsssht daemon // Connect to wsssht daemon
int tunnel_fd = socket(AF_INET, SOCK_STREAM, 0); int tunnel_fd = socket(AF_INET, SOCK_STREAM, 0);
if (tunnel_fd < 0) { if (tunnel_fd < 0) {
perror("[WEB-PROXY] Failed to create socket");
send_http_error(client_fd, 500, "Internal Server Error"); send_http_error(client_fd, 500, "Internal Server Error");
return -1; return -1;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment