Shuanglei Tao
d4afb14069
gitignore: add .vscode dir
2021-03-20 17:47:43 +08:00
Shuanglei Tao
cbb31ea4aa
protocol: improve exit code handling
2021-03-07 13:05:29 +08:00
Shuanglei Tao
d6921b235d
protocol: add conpty support
2021-03-03 21:02:33 +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
7bd16386d2
server: increase max length of base path to 128
2021-01-28 23:39:21 +08:00
Shuanglei Tao
4f91d763b4
protocol: fix ws code on process exit
2020-12-31 22:18:22 +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
f7c171ffbe
protocol: fix request path for h2
2020-07-28 22:55:01 +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
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
b67e382ab8
server: improve child process handling
2019-12-11 21:14:17 +08:00
Shuanglei Tao
ca91f40048
protocol: split forkpty to separate file
2019-12-05 22:28:58 +08:00
Shuanglei Tao
df6f3bd652
protocol: rename tty_client to pss_tty
2019-11-30 17:49:37 +08:00
Shuanglei Tao
f61b9aec11
server: improve signal handling
2019-11-30 17:25:53 +08:00
Shuanglei Tao
fe7bad2c63
server: remove sys/queue dep
2019-11-30 17:25:27 +08:00
Shuanglei Tao
59601329ae
libuv: initial support
2019-11-30 15:10:41 +08:00
Shuanglei Tao
62844c2509
src: fix exit code check on linux
2019-09-15 19:07:02 +08:00
Shuanglei Tao
5381d0f825
all: remove pthread
2019-09-15 18:39:30 +08:00
ideal
4ad0cc86b7
Fix for upgrade of libwebsockets 3.2.0, it removes the poll which breaks every second in the previous version.
...
Reference:
[1] https://github.com/warmcat/libwebsockets/issues/1685
[2] https://libwebsockets.org/git/libwebsockets/tree/READMEs/README.lws_sul.md
2019-09-14 19:53:54 +08:00
Shuanglei Tao
671427b150
src: fallback to lws_get_peer_addresses on old libwebsockets
2019-09-03 22:29:27 +08:00
Stuart Henderson
6facf525c1
include pthread.h for pthread_mutex_t ( #206 )
...
Needed to unbreak build on OpenBSD.
2019-07-31 16:09:01 +08:00
Shuanglei Tao
0fc275f3a3
server: remove the reconnect option (enabled by default)
2019-07-05 23:09:07 +08:00
Shuanglei Tao
74e091f954
server: add support for cli args via url
2019-04-14 22:28:03 +08:00
Shuanglei Tao
aac89aa617
server: custom terminal type support
2018-09-01 21:02:43 +08:00
Shuanglei Tao
60a9bf1ab6
http: write index html with buffer
2018-09-01 20:37:18 +08:00
Shuanglei Tao
176f3e18a3
protocol: replace sleep with pthread cond
2018-08-20 13:33:17 +08:00
Shuanglei Tao
0f97a69446
libwebsockets 3.0 support
2018-08-18 17:07:41 +08:00
Shuanglei Tao
be91d56904
src: seprate includes from server.h
2018-08-18 09:59:19 +08:00
Shuanglei Tao
9dd8a97e6b
protocol: avoid extra copy of pty data
2018-01-13 11:30:37 +08:00
Shuanglei Tao
26f8b17891
server: use libwebsockets's built-in ping-pong
2018-01-11 22:15:49 +08:00
Shuanglei Tao
47ba5daa12
protocol: use binary message
2017-11-25 22:53:44 +08:00
Shuanglei Tao
a5b8905c19
Support numeric value for --signal
2017-11-05 11:17:03 +08:00
Shuanglei Tao
3580e80783
Add support for the --max-clients option
2017-04-06 21:45:07 +08:00
Shuanglei Tao
5e4d121218
cmake: add support for generating deb package for ubuntu
2017-03-26 09:15:47 +08:00
dohnuts
1d7d21f898
Shims to compile under OpenBSD
...
STAILQ_HEAD is implemented as SIMPLEQ_HEAD
pty.h is like in apple , util.h
2017-03-09 22:18:02 +08:00
Shuanglei Tao
ffdf56e440
Execute command after authentication
2017-02-05 18:06:13 +08:00
Shuanglei Tao
de75490d3e
Add support for listening on UNIX domain socket
2017-01-30 21:50:57 +08:00
Shuanglei Tao
c9ffa8a8d7
Add support for the --index option
2017-01-19 23:40:20 +08:00
Shuanglei Tao
24c3f2a880
Add support for the --client-option option
2016-10-30 11:02:57 +08:00
Neel Chauhan
bccf6a435d
Fix pty.h compile error on FreeBSD (FreeBSD uses libutil.h instead of util.h or pty.h)
2016-10-15 22:01:06 +08:00
Shuanglei Tao
e714cc8718
Add support for the --check-origin option
...
requires libwebsockets 1.7.0+ since lws_parse_uri is available from 1.7.0
2016-10-10 23:42:11 +08:00
Shuanglei Tao
67d6564cfb
Add support for the --readonly option
2016-10-10 22:08:17 +08:00
Shuanglei Tao
3c9884a87b
Add support for the --once option
2016-10-10 21:53:03 +08:00
Shuanglei Tao
c4d16c0283
libwebsockets: hande fragmented messages, fixes #9
2016-10-01 20:34:45 +08:00
Shuanglei Tao
659567dd5f
cmake: enhance dependency check
2016-09-27 23:28:05 +08:00
Shuanglei Tao
9174d6116c
Implemented authentication for websocket connection
2016-09-25 01:00:34 +08:00
Shuanglei Tao
b31676520c
travis: test both 1.7.x and 2.0.x version of libwebsockets
2016-09-20 20:54:30 +08:00