Commit Graph

32 Commits

Author SHA1 Message Date
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
Shuanglei Tao
1f579b491a Move source files to src 2016-09-19 22:20:40 +08:00