]> prime8.dev >> repos - ttyd.git/commitdiff
server: remove ws_ping_pong_interval on lws > 4.0
authorShuanglei Tao <tsl0922@gmail.com>
Sat, 25 Jul 2020 01:26:22 +0000 (09:26 +0800)
committerShuanglei Tao <tsl0922@gmail.com>
Sat, 25 Jul 2020 01:26:22 +0000 (09:26 +0800)
https://github.com/warmcat/libwebsockets/issues/1915

src/server.c

index c1e7c330dc17d849ade569fd5c8e12a59533081e..4043c61a6998af1e778a4782c3f7a0283694bac2 100644 (file)
@@ -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