mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-09 12:24:21 +01:00
server: increase max length of base path to 128
This commit is contained in:
@@ -82,7 +82,7 @@ OPTIONS:
|
||||
-o, --once Accept only one client and exit on disconnection
|
||||
-B, --browser Open terminal with the default system browser
|
||||
-I, --index Custom index.html path
|
||||
-b, --base-path Expected base path for requests coming from a reverse proxy (eg: /mounted/here)
|
||||
-b, --base-path Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)
|
||||
-P, --ping-interval Websocket ping interval(sec) (default: 300)
|
||||
-6, --ipv6 Enable IPv6 support
|
||||
-S, --ssl Enable SSL
|
||||
|
||||
@@ -97,7 +97,7 @@ Cross platform: macOS, Linux, FreeBSD/OpenBSD, OpenWrt/LEDE, Windows
|
||||
|
||||
.PP
|
||||
\-b, \-\-base\-path
|
||||
Expected base path for requests coming from a reverse proxy (eg: /mounted/here)
|
||||
Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)
|
||||
|
||||
.PP
|
||||
\-P, \-\-ping\-interval
|
||||
|
||||
@@ -65,7 +65,7 @@ ttyd 1 "September 2016" ttyd "User Manual"
|
||||
Custom index.html path
|
||||
|
||||
-b, --base-path
|
||||
Expected base path for requests coming from a reverse proxy (eg: /mounted/here)
|
||||
Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)
|
||||
|
||||
-P, --ping-interval
|
||||
Websocket ping interval(sec) (default: 300)
|
||||
|
||||
@@ -115,7 +115,7 @@ static void print_help() {
|
||||
" -o, --once Accept only one client and exit on disconnection\n"
|
||||
" -B, --browser Open terminal with the default system browser\n"
|
||||
" -I, --index Custom index.html path\n"
|
||||
" -b, --base-path Expected base path for requests coming from a reverse proxy (eg: /mounted/here)\n"
|
||||
" -b, --base-path Expected base path for requests coming from a reverse proxy (eg: /mounted/here, max length: 128)\n"
|
||||
#if LWS_LIBRARY_VERSION_NUMBER >= 4000000
|
||||
" -P, --ping-interval Websocket ping interval(sec) (default: 300)\n"
|
||||
#endif
|
||||
|
||||
@@ -62,7 +62,7 @@ struct pss_tty {
|
||||
int initial_cmd_index;
|
||||
bool authenticated;
|
||||
char address[50];
|
||||
char path[20];
|
||||
char path[128];
|
||||
|
||||
struct lws *wsi;
|
||||
char *buffer;
|
||||
|
||||
Reference in New Issue
Block a user