From: Shuanglei Tao Date: Sat, 25 Jul 2020 01:26:22 +0000 (+0800) Subject: server: remove ws_ping_pong_interval on lws > 4.0 X-Git-Url: http://git.prime8.dev/?a=commitdiff_plain;h=5902726732ff04db6edf57f2148cf8cb166fb7ee;p=ttyd.git server: remove ws_ping_pong_interval on lws > 4.0 https://github.com/warmcat/libwebsockets/issues/1915 --- diff --git a/src/server.c b/src/server.c index c1e7c33..4043c61 100644 --- a/src/server.c +++ b/src/server.c @@ -449,7 +449,7 @@ int main(int argc, char **argv) { LWS_LIBRARY_VERSION); info.server_string = server_hdr; #endif -#if LWS_LIBRARY_VERSION_NUMBER >= 2001000 +#if LWS_LIBRARY_VERSION_NUMBER >= 2001000 && LWS_LIBRARY_VERSION_NUMBER < 4000000 info.ws_ping_pong_interval = 5; #endif