Commit Graph

276 Commits

Author SHA1 Message Date
Shuanglei Tao
c0bdd7bb28 protocol: free memory allocated for url args 2021-03-14 11:20:10 +08:00
Shuanglei Tao
21b9aefbe3 protocol: cleanup unused code 2021-03-11 22:56:49 +08:00
Shuanglei Tao
0b146b750c server: fix ssl ca option init 2021-03-09 22:23:28 +08:00
Shuanglei Tao
cbb31ea4aa protocol: improve exit code handling 2021-03-07 13:05:29 +08:00
Shuanglei Tao
02bbbec678 pty: rename pty_close to pty_kill 2021-03-06 17:39:05 +08:00
Shuanglei Tao
f67feebcc2 protocol: fix auth token check 2021-03-06 17:37:30 +08:00
Shuanglei Tao
96e88fb4ce protocol: set windows size on spawm process 2021-03-06 14:27:05 +08:00
Shuanglei Tao
3929e5c2b6 pty: polish pty_spawn code 2021-03-06 12:50:50 +08:00
Shuanglei Tao
52adaba9e1 pty: use uint16_t for resize params 2021-03-05 23:46:57 +08:00
Shuanglei Tao
d6921b235d protocol: add conpty support 2021-03-03 21:02:33 +08:00
Shuanglei Tao
49068cf536 utils: remove useless include 2021-02-20 23:25:21 +08:00
Shuanglei Tao
215849b5d0 protocol: fix uv handle closing 2021-02-06 09:28:04 +08:00
Shuanglei Tao
75105f6d48 protocol: use 2 pipe for read and write 2021-02-06 01:03:49 +08:00
Shuanglei Tao
bfb2d0cc86 src: move pty code to protocol 2021-02-03 21:34:41 +08:00
Shuanglei Tao
7bd16386d2 server: increase max length of base path to 128 2021-01-28 23:39:21 +08:00
Shuanglei Tao
7ce3081b74 protocol: fix illegal ws path error msg 2021-01-21 20:51:06 +08:00
Shuanglei Tao
e2e107170c html: yarn upgrade 2021-01-01 14:53:46 +08:00
Shuanglei Tao
4f91d763b4 protocol: fix ws code on process exit 2020-12-31 22:18:22 +08:00
Shuanglei Tao
6db541b2b1 server: add mbedtls support 2020-12-30 00:45:09 +08:00
Shuanglei Tao
c14b1fec2f protocol: do not show eof as error 2020-12-28 00:17:03 +08:00
Mathias Aerts
d4d854f662 html: fix styling for bottom of terminal 2020-12-27 23:08:12 +08:00
Shuanglei Tao
4ab5479a83 html: implement flow control for xterm
https://xtermjs.org/docs/guides/flowcontrol/#flow-control-over-websockets
2020-12-27 19:37:51 +08:00
Shuanglei Tao
61a9bcd810 html: add disableReconnect client option 2020-12-27 15:28:12 +08:00
Shuanglei Tao
5650606674 protocol: fix incorrect uv_close usage 2020-12-27 13:16:29 +08:00
Shuanglei Tao
29ef8cbc3b html: show message on reconnect success 2020-12-19 12:38:20 +08:00
Shuanglei Tao
73639d393c html: rebuild header file 2020-12-13 22:51:28 +08:00
Shuanglei Tao
268a6ff38a scripts: bump to lws 4.1.4 2020-11-07 19:59:06 +08:00
Shuanglei Tao
eac1b47357 html: rebuild header file 2020-11-07 19:27:15 +08:00
MATSUO Takatoshi
47325461eb add websocket ping interval option (#519) 2020-11-07 12:00:27 +08:00
Shuanglei Tao
fc037fe373 html: rebuild header file 2020-09-13 08:12:06 +08:00
Shuanglei Tao
7e0f8061cb html: add disableResizeOverlay client option 2020-08-19 20:40:58 +08:00
Shuanglei Tao
f7c171ffbe protocol: fix request path for h2 2020-07-28 22:55:01 +08:00
Shuanglei Tao
83020392a6 html: rebuild header file 2020-07-28 08:49:34 +08:00
Shuanglei Tao
f9d23de0fe protocol: improve io error handling 2020-07-27 22:43:28 +08:00
Shuanglei Tao
4d33dc4a60 cmake: check LWS_WITH_SSL 2020-07-27 07:52:22 +08:00
Shuanglei Tao
e34fd09dee server: fix unix domain socket for lws 4.0 2020-07-26 10:56:25 +08:00
Shuanglei Tao
5902726732 server: remove ws_ping_pong_interval on lws > 4.0
https://github.com/warmcat/libwebsockets/issues/1915
2020-07-25 09:26:22 +08:00
Shuanglei Tao
a8417381cd html: add titleFixed client option 2020-07-25 08:46:45 +08:00
Ondřej Caletka
cb3e72018b Refit to the browser window after changing font size (#416)
Fixes #415

Signed-off-by: Ondřej Caletka <ondrej@caletka.cz>
2020-07-23 08:37:36 +08:00
Shuanglei Tao
260778aff2 html: add disableLeaveAlert client option 2020-06-20 12:15:35 +08:00
Bartosz Biłas
31c0dff029 src/http.c: fix checking pss's len member (#385)
len member is a size_t type so it can't be less than 0 by definition.

Signed-off-by: Bartosz Bilas <b.bilas@grinn-global.com>
2020-06-19 10:14:42 +08:00
Shuanglei Tao
528aa79d01 html: rebuild header file 2020-06-19 00:00:50 +08:00
Shuanglei Tao
35e2507b7c xterm.js 4.7.0 2020-06-18 23:05:50 +08:00
Shuanglei Tao
70c12e4afa http: fix build with lws 1.7 2020-06-14 00:33:35 +08:00
Girts
56d26accd3 protocol: fix readonly handling (#373)
Previously, if running in readonly mode (`-R`), we would keep
accumulating incoming websocket data to `pss->buffer`, resizing it with
every incoming message. This would also break the `RESIZE` operation as
we would never get rid of the `INPUT` message.

Now we discard `INPUT` messages in `readonly` mode, 1) allowing resize
to work and 2) preventing the buffer from growing indefinitely.
2020-06-06 21:51:15 +08:00
Shuanglei Tao
17865704de html: rebuild header file 2020-05-23 00:52:39 +08:00
Adam Bliss
2beab0d203 Fix type declaration (#357)
`pty` is a file descriptor (i.e. an int), not a pid.
2020-05-19 10:20:57 +08:00
Shuanglei Tao
ff2eebc4cc src: fix lws version check for keep alive 2020-05-02 23:26:59 +08:00
Wiki Wang
2511d2deca html: set URL of stylesheet by href
URL should be set with attribute `href`, `src` is no longer supportd by new browsers
2020-05-02 23:23:37 +08:00
Shuanglei Tao
29507eda2f html: rebuild header file 2020-04-24 21:56:14 +08:00