ttyd: compatibility with latest websockets

This commit is contained in:
Leonid Pliushch 2020-10-01 12:50:30 +03:00
parent 5b9aeb808c
commit 80f719f719
2 changed files with 14 additions and 1 deletions

View File

@ -2,7 +2,7 @@ TERMUX_PKG_HOMEPAGE=https://tsl0922.github.io/ttyd/
TERMUX_PKG_DESCRIPTION="Command-line tool for sharing terminal over the web"
TERMUX_PKG_LICENSE="MIT"
TERMUX_PKG_VERSION=1.6.1
TERMUX_PKG_REVISION=2
TERMUX_PKG_REVISION=3
TERMUX_PKG_SRCURL=https://github.com/tsl0922/ttyd/archive/$TERMUX_PKG_VERSION.tar.gz
TERMUX_PKG_SHA256=d72dcca3dec00cda87b80a0a25ae4fee2f8b9098c1cdb558508dcb14fbb6fafc
TERMUX_PKG_DEPENDS="json-c, libuv, libwebsockets, zlib"

View File

@ -0,0 +1,13 @@
diff -uNr ttyd-1.6.1/src/server.c ttyd-1.6.1.mod/src/server.c
--- ttyd-1.6.1/src/server.c 2020-06-26 08:07:38.000000000 +0300
+++ ttyd-1.6.1.mod/src/server.c 2020-10-01 12:48:37.004505774 +0300
@@ -449,9 +449,6 @@
LWS_LIBRARY_VERSION);
info.server_string = server_hdr;
#endif
-#if LWS_LIBRARY_VERSION_NUMBER >= 2001000
- info.ws_ping_pong_interval = 5;
-#endif
if (strlen(iface) > 0) {
info.iface = iface;