Commit Graph

246 Commits

Author SHA1 Message Date
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
Shuanglei Tao
bf8a0d21a3 html: xterm.js 4.5.0 2020-04-11 09:52:54 +08:00
Shuanglei Tao
c38cdc3fd7 clang-format: udpate ColumnLimit to 100 and reformat code 2020-03-26 01:27:11 +08:00
Daniel Monteiro Basso
398bebf091 Improvements for --base-path usage (#292)
* Trim trailing slashes in --base-path option

* Redirect `/base-path` to `/base-path/`

* Log endpoints if --base-path is provided

* Use predefined token for standard header 'location'
2020-03-25 17:12:33 +08:00
Shuanglei Tao
2fdb4c0c03 src: reformat with clang-format 2020-03-14 17:46:26 +08:00
Shuanglei Tao
e324cc3b91 html: update npm packages 2020-03-14 11:59:18 +08:00
Shuanglei Tao
9fece9ea8f html: recreate sentry object on zmodem reset 2020-03-12 22:44:10 +08:00
Shuanglei Tao
b0c4ad97f0 all: use the static keyword on functions 2020-03-11 00:54:39 +08:00
Tian Yuanhao
f46744283b protocol: replace uv_try_write with uv_write 2020-03-11 00:39:16 +08:00
Daniel Monteiro Basso
97260858bf Add -b, --base-path option for reverse proxies (#151) (#281)
* Add -b, --base-path option for reverse proxies (#151)
2020-03-10 09:54:34 +08:00
Shuanglei Tao
48f53bcc00 protocol: fix lws callback compatibility 2020-03-10 09:41:35 +08:00
Shuanglei Tao
79acf9e896 server: mute lws 4.0 extensions warning 2020-03-10 09:35:54 +08:00
Shuanglei Tao
339889eadc html: reuse xterm instance on reconnect 2020-03-07 20:55:47 +08:00
Shuanglei Tao
5f25521209 html: preact 10.3.2 2020-02-19 17:55:58 +08:00
Shuanglei Tao
bd7335cce0 html: polish code 2020-02-07 13:08:34 +08:00
Shuanglei Tao
6bbe4db775 html: use api to fetch auth token 2020-02-06 17:43:40 +08:00
Shuanglei Tao
463da8352e html: xterm.js 4.4.0 2020-02-05 17:01:55 +08:00
Shuanglei Tao
437e63a39c html: embed gziped version 2020-02-05 16:42:43 +08:00
Shuanglei Tao
0e728e61ce cmake: remove xxd dependency 2020-02-02 14:51:09 +08:00
Rosen Penev
42349f28b3 http: add missing header (#263)
Fixes compilation without deprecated OpenSSL APIs.
2020-01-26 12:51:29 +08:00
Shuanglei Tao
985885ce2d server: print listen port on start 2020-01-20 23:56:36 +08:00
Dennis Chen
498874deb8 bugfix: off by one error (#257)
The strncpy function requires enough space for a NUL terminator.
2020-01-02 21:30:58 +08:00
Shuanglei Tao
72dbba3d5a protocol: print signal name 2019-12-15 00:07:19 +08:00
Shuanglei Tao
76eebaaa4a protocol: use uv_kill to kill process 2019-12-14 22:59:56 +08:00
Shuanglei Tao
cb02d79281 protocol: fix json parsing 2019-12-14 22:50:53 +08:00
Fredrik Fornwall
d99193171d Avoid trying to redefine sys_signame on Android (#253)
On Android <signal.h> defines sys_signame, so trying to redefine it
causes the build to fail.
2019-12-13 14:06:06 +08:00
Shuanglei Tao
b67e382ab8 server: improve child process handling 2019-12-11 21:14:17 +08:00
Shuanglei Tao
397b24f138 html: webgl renderer support 2019-12-08 23:23:07 +08:00
Shuanglei Tao
c6248d1e6a html: update dependencies 2019-12-08 17:46:37 +08:00
Shuanglei Tao
d5b303aa73 server: exit immediately on old lws versions 2019-12-08 13:29:47 +08:00
Shuanglei Tao
cfd338ea5e terminal: set the pty fd non blocking 2019-12-05 23:19:34 +08:00