[186] Fix TLS operation with websockets listeners and libwebsockts 2.x.

Bug: https://github.com/eclipse/mosquitto/issues/186
pull/198/head
Roger A. Light 9 years ago
parent 2d0af7309f
commit 5d96c3d7ba

@ -1,3 +1,11 @@
1.x.x - 2016xxxx
================
Broker:
- Fix TLS operation with websockets listeners and libwebsockts 2.x. Closes
#186.
1.4.9 - 20160603 1.4.9 - 20160603
================ ================

@ -603,6 +603,9 @@ struct libwebsocket_context *mosq_websockets_init(struct _mqtt3_listener *listen
#ifndef LWS_IS_OLD #ifndef LWS_IS_OLD
info.options |= LWS_SERVER_OPTION_DISABLE_IPV6; info.options |= LWS_SERVER_OPTION_DISABLE_IPV6;
#endif #endif
#if LWS_LIBRARY_VERSION_MAJOR>1
info.options |= LWS_SERVER_OPTION_DO_SSL_GLOBAL_INIT
#endif
user = _mosquitto_calloc(1, sizeof(struct libws_mqtt_hack)); user = _mosquitto_calloc(1, sizeof(struct libws_mqtt_hack));
if(!user){ if(!user){

Loading…
Cancel
Save