server: replace --readonly with --writable

This commit is contained in:
Shuanglei Tao
2023-05-09 18:41:54 +08:00
parent e46e3cf405
commit f8efcddb0b
8 changed files with 16 additions and 16 deletions

View File

@@ -306,7 +306,7 @@ int callback_tty(struct lws *wsi, enum lws_callback_reasons reason, void *user,
switch (command) {
case INPUT:
if (server->readonly) break;
if (!server->writable) break;
int err = pty_write(pss->process, pty_buf_init(pss->buffer + 1, pss->len - 1));
if (err) {
lwsl_err("uv_write: %s (%s)\n", uv_err_name(err), uv_strerror(err));