mirror of
https://github.com/eclipse-mosquitto/mosquitto.git
synced 2026-09-22 16:15:05 +08:00
Fix build variant workflow
Note that WITH_TLS fails because websockets requires TLS, and WITH_SHARED_LIBRARIES fails because with it turned off none of the libraries are built
This commit is contained in:
+3
-2
@@ -7,10 +7,11 @@ build_variants = [
|
||||
'WITH_CONTROL',
|
||||
'WITH_EDITLINE',
|
||||
'WITH_EPOLL',
|
||||
'WITH_HTTP_API',
|
||||
'WITH_MEMORY_TRACKING',
|
||||
'WITH_OLD_KEEPALIVE',
|
||||
'WITH_PERSISTENCE',
|
||||
'WITH_SHARED_LIBRARIES',
|
||||
#'WITH_SHARED_LIBRARIES',
|
||||
'WITH_SOCKS',
|
||||
'WITH_SQLITE',
|
||||
'WITH_SRV',
|
||||
@@ -18,7 +19,7 @@ build_variants = [
|
||||
'WITH_SYSTEMD',
|
||||
'WITH_SYS_TREE',
|
||||
'WITH_THREADING',
|
||||
'WITH_TLS',
|
||||
#'WITH_TLS',
|
||||
'WITH_TLS_PSK',
|
||||
'WITH_UNIX_SOCKETS',
|
||||
'WITH_WEBSOCKETS',
|
||||
|
||||
@@ -264,9 +264,11 @@ struct mosquitto__listener {
|
||||
bool ws_in_init;
|
||||
struct lws_protocols *ws_protocol;
|
||||
# endif
|
||||
char *http_dir;
|
||||
char **ws_origins;
|
||||
int ws_origin_count;
|
||||
#endif
|
||||
#if defined(WITH_WEBSOCKETS) || defined(WITH_HTTP_API)
|
||||
char *http_dir;
|
||||
#endif
|
||||
struct mosquitto__security_options *security_options;
|
||||
#ifdef WITH_UNIX_SOCKETS
|
||||
|
||||
+4
-1
@@ -25,9 +25,12 @@ static void proxy_cleanup(struct mosquitto *context)
|
||||
|
||||
static int update_transport(struct mosquitto *context)
|
||||
{
|
||||
#if defined(WITH_WEBSOCKETS) && WITH_WEBSOCKETS == WS_IS_BUILTIN
|
||||
if(context->listener->protocol == mp_websockets){
|
||||
return http__context_init(context);
|
||||
}else{
|
||||
}else
|
||||
#endif
|
||||
{
|
||||
context->transport = mosq_t_tcp;
|
||||
}
|
||||
return MOSQ_ERR_SUCCESS;
|
||||
|
||||
+4
-1
@@ -297,9 +297,12 @@ int proxy_v2__read(struct mosquitto *context)
|
||||
}
|
||||
proxy_cleanup(context);
|
||||
|
||||
#if defined(WITH_WEBSOCKETS) && WITH_WEBSOCKETS == WS_IS_BUILTIN
|
||||
if(context->listener->protocol == mp_websockets){
|
||||
return http__context_init(context);
|
||||
}else{
|
||||
}else
|
||||
#endif
|
||||
{
|
||||
context->transport = mosq_t_tcp;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user