summaryrefslogtreecommitdiffstats
path: root/src/server.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 08:14:45 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-08 08:14:56 +0000
commit62010aafd4014c19d4d0cf36f01d3c53b43c5e7b (patch)
tree6f1fd3cfe312292e359bb7befa4b44a5fe986182 /src/server.h
parentReleasing debian version 1.7.3-2. (diff)
downloadttyd-62010aafd4014c19d4d0cf36f01d3c53b43c5e7b.tar.xz
ttyd-62010aafd4014c19d4d0cf36f01d3c53b43c5e7b.zip
Merging upstream version 1.7.7.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--src/server.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/server.h b/src/server.h
index 794965a..e13d632 100644
--- a/src/server.h
+++ b/src/server.h
@@ -59,7 +59,7 @@ struct pss_tty {
typedef struct {
struct pss_tty *pss;
bool ws_closed;
-} pty_ctx_t ;
+} pty_ctx_t;
struct server {
int client_count; // client count
@@ -74,10 +74,11 @@ struct server {
int sig_code; // close signal
char sig_name[20]; // human readable signal string
bool url_arg; // allow client to send cli arguments in URL
- bool readonly; // whether not allow clients to write to the TTY
+ bool writable; // whether 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
+ bool exit_no_conn; // whether exit on all clients disconnection
char socket_path[255]; // UNIX domain socket path
char terminal_type[30]; // terminal type to report