mirror of
https://github.com/tsl0922/ttyd.git
synced 2026-01-06 10:54:22 +01:00
Add support for the --max-clients option
This commit is contained in:
@@ -110,6 +110,7 @@ struct tty_server {
|
||||
char *sig_name; // human readable signal string
|
||||
bool readonly; // whether not allow clients to write to the TTY
|
||||
bool check_origin; // whether allow websocket connection from different origin
|
||||
int max_clients; // maximum clients to support
|
||||
bool once; // whether accept only one client and exit on disconnection
|
||||
char *socket_path; // UNIX domain socket path
|
||||
pthread_mutex_t lock;
|
||||
|
||||
Reference in New Issue
Block a user