mirror of
https://github.com/tsl0922/ttyd.git
synced 2025-12-22 11:54:19 +01:00
src: fix lws version check for keep alive
This commit is contained in:
@@ -448,9 +448,9 @@ int main(int argc, char **argv) {
|
|||||||
sprintf(server_hdr, "ttyd/%s (libwebsockets/%s)", TTYD_VERSION,
|
sprintf(server_hdr, "ttyd/%s (libwebsockets/%s)", TTYD_VERSION,
|
||||||
LWS_LIBRARY_VERSION);
|
LWS_LIBRARY_VERSION);
|
||||||
info.server_string = server_hdr;
|
info.server_string = server_hdr;
|
||||||
#if LWS_LIBRARY_VERSION_MINOR >= 1
|
|
||||||
info.ws_ping_pong_interval = 5;
|
|
||||||
#endif
|
#endif
|
||||||
|
#if LWS_LIBRARY_VERSION_NUMBER >= 2001000
|
||||||
|
info.ws_ping_pong_interval = 5;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (strlen(iface) > 0) {
|
if (strlen(iface) > 0) {
|
||||||
|
|||||||
Reference in New Issue
Block a user