mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-23 12:14:20 +01:00
protocol: ignore invalid message
This commit is contained in:
@@ -336,9 +336,8 @@ callback_tty(struct lws *wsi, enum lws_callback_reasons reason,
|
||||
}
|
||||
break;
|
||||
default:
|
||||
lwsl_warn("unknown message type: %c\n", command);
|
||||
lws_close_reason(wsi, LWS_CLOSE_STATUS_INVALID_PAYLOAD, NULL, 0);
|
||||
return -1;
|
||||
lwsl_warn("ignored unknown message type: %c\n", command);
|
||||
break;
|
||||
}
|
||||
|
||||
if (client->buffer != NULL) {
|
||||
|
||||
Reference in New Issue
Block a user