Commit Graph

315 Commits

Author SHA1 Message Date
Shuanglei Tao
6cfd9b29ae protocol: fix potential pty buf leak 2022-08-18 10:38:55 +08:00
Shuanglei Tao
d7db63726c protocol: fix potential null pss access 2022-08-17 16:55:49 +08:00
Shuanglei Tao
0b6eaa80b0 html: update default font family 2022-08-08 15:41:13 +08:00
Shuanglei Tao
07c4904718 html: replace node-sass with sass 2022-08-05 00:49:57 +08:00
Shuanglei Tao
ef17d18a71 html: update packages 2022-08-04 22:54:12 +08:00
pseudo
1be5f5c063 pty.c: Fix errant use of fcntl F_SETFD (#951)
* pty.c: Fix errant use of fcntl F_SETFL

When this was added in cfd338ea5e

We before this time the *File descriptor flags* (`F_GETFD`/`F_SETFD`) were augmented to include `FD_CLOEXEC`
Then at this time the additional code added the *File status flags* (`F_GETFL`/`F_SETFL`) to include `O_NONBLOCK`, but this was weaved through code working with `F_SETFD` instead of `F_SETFL`. Some systems may use one big status word for all of them. Mine certainly dont.

FIXES #733
2022-08-04 09:45:09 +08:00
Shuanglei Tao
8b6b71e133 server: disable tls 1.0/1.1 by default for openssl 2022-07-04 23:25:08 +08:00
Shuanglei Tao
291642c992 html: upgrade to xterm@4.19.0 2022-07-04 21:53:24 +08:00
Shuanglei Tao
4692025d1b html: update dependencies 2022-01-07 21:51:46 +08:00
Shuanglei Tao
3e37e33b1c html: update dependencies 2021-12-07 01:05:52 +08:00
Shuanglei Tao
723ae96693 html: merge object values for client-option 2021-11-27 11:19:45 +08:00
Shuanglei Tao
f896dff8a7 html: polish webgl init code 2021-11-27 10:34:59 +08:00
Shuanglei Tao
1fbb9792a6 html: improve webgl2 detection code 2021-11-21 11:57:24 +08:00
Shuanglei Tao
b37ea9f274 server: fix default keepalive not working 2021-11-20 23:24:31 +08:00
Shuanglei Tao
aedc6e6f1f html: update dependencies 2021-11-20 22:59:06 +08:00
Shuanglei Tao
62a5b635c6 html: upgrade to xterm@4.15.0 2021-11-08 21:50:22 +08:00
Shuanglei Tao
d0422b30ba html: run gts fix 2021-11-08 21:25:37 +08:00
Shuanglei Tao
47c554323a html: rebuild header file 2021-10-23 19:53:34 +08:00
Shuanglei Tao
a5f0765d45 html: fix rendererType updating issue 2021-09-24 22:51:14 +08:00
Shuanglei Tao
fcec9a66d6 pty: inherit env from parent process 2021-08-19 00:19:40 +08:00
Shuanglei Tao
1415e5c56b pty: fix cwd on windows 2021-08-16 23:55:15 +08:00
Shuanglei Tao
bff3a617e6 server: add cwd support 2021-08-16 23:08:05 +08:00
Shuanglei Tao
968f1e6e70 pty: set TTYD_USER env 2021-08-15 14:55:37 +08:00
Shuanglei Tao
e402edf13c server: add auth proxy support 2021-08-13 22:09:30 +08:00
Shuanglei Tao
b2cda1d68c drop libwebsockets < 3.2.0 support 2021-08-10 22:20:56 +08:00
Shuanglei Tao
1e5c5242fd protocol: check basic auth on ws connection 2021-08-08 21:38:30 +08:00
Shuanglei Tao
8a75364a76 http: polish basic auth code 2021-08-08 21:25:01 +08:00
Shuanglei Tao
020655483b server: validate numeric value command-line arguments 2021-08-08 20:46:32 +08:00
Shuanglei Tao
619bfc34cd pty: set TERM env for the pty process 2021-08-08 20:05:34 +08:00
Shuanglei Tao
9e9c2ac142 html: rebuild header file 2021-07-27 01:16:36 +08:00
Shuanglei Tao
811fb5982f pty: fix error handling 2021-07-27 00:24:55 +08:00
Shuanglei Tao
4a6b2600c4 server: update default ping interval to 5s 2021-05-05 12:41:42 +08:00
Shuanglei Tao
d7440fbaf8 html: drop backoff support 2021-05-04 12:58:30 +08:00
Shuanglei Tao
f3f625b582 html: upgrade to webpack 5 2021-04-30 11:34:16 +08:00
Shuanglei Tao
cb758b9cc3 server: use base64 function from lws 2021-03-27 10:27:05 +08:00
Shuanglei Tao
9c1e464e8c html: add ability to press enter to reconnect 2021-03-21 10:27:53 +08:00
Shuanglei Tao
d4afb14069 gitignore: add .vscode dir 2021-03-20 17:47:43 +08:00
Shuanglei Tao
c5f414b25a all: remove the vla usage 2021-03-16 21:40:44 +08:00
Shuanglei Tao
2480810eb3 protocol: fix -Wstringop-overflow compile warning 2021-03-14 11:57:57 +08:00
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