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
Shuanglei Tao
ca91f40048
protocol: split forkpty to separate file
2019-12-05 22:28:58 +08:00
Shuanglei Tao
c0ebb57d9e
protocol: cleanup pipe handle
2019-11-30 19:24:42 +08:00
Shuanglei Tao
36c9734623
protocol: fix potential double free
2019-11-30 18:48:56 +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
e2ac72336b
html: use file-saver to save file
2019-11-28 20:46:38 +08:00
Shuanglei Tao
831379e2bb
server: add a tiny timeout to lws_service
2019-11-28 20:46:05 +08:00
Shuanglei Tao
6d69f0a55d
server: remove the sleep from main loop
2019-11-26 21:55:42 +08:00
Shuanglei Tao
28cbbdaa3d
html: preact 10.0.5
2019-11-23 23:19:32 +08:00
Shuanglei Tao
75b3b59247
html: upgrade to preact 10 and xterm 4.2.0
2019-10-26 14:45:04 +08:00
Shuanglei Tao
9126d54108
protocol: set pty fd close-on-exec
2019-09-28 23:31:15 +08:00
Shuanglei Tao
dbcf12512f
xterm.js 4.0.2
2019-09-28 23:11:41 +08:00
Shang Yuanchun
96528fe2e1
Focus to terminal after rz transfer completed ( #237 )
...
* Focus to terminal after rz transfer completed
* Generate index.html after commit d355d7b9c8
2019-09-28 23:01:22 +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
46064ee86e
src: refuse to compile with lws 3.2.0
2019-09-14 11:30:39 +08:00
Shuanglei Tao
83c6317527
xterm.js 4.0.1
2019-09-14 10:34:46 +08:00
Shuanglei Tao
9af13f750a
xterm.js 3.14.0
2019-09-11 22:25:31 +08:00
Shuanglei Tao
671427b150
src: fallback to lws_get_peer_addresses on old libwebsockets
2019-09-03 22:29:27 +08:00