Add websocket_protocol_header config
This commit is contained in:
parent
0ffa2d00d0
commit
414f156d4a
|
@ -119,6 +119,9 @@ mqtt.max_clientid_len = 1024
|
||||||
## Max Packet Size Allowed, 64K by default.
|
## Max Packet Size Allowed, 64K by default.
|
||||||
mqtt.max_packet_size = 64KB
|
mqtt.max_packet_size = 64KB
|
||||||
|
|
||||||
|
## Check Websocket Protocol Header. Enum: on, off
|
||||||
|
mqtt.websocket_protocol_header = on
|
||||||
|
|
||||||
##--------------------------------------------------------------------
|
##--------------------------------------------------------------------
|
||||||
## MQTT Connection
|
## MQTT Connection
|
||||||
##--------------------------------------------------------------------
|
##--------------------------------------------------------------------
|
||||||
|
|
|
@ -346,6 +346,11 @@ end}.
|
||||||
{max_packet_size, cuttlefish:conf_get("mqtt.max_packet_size", Conf)}]
|
{max_packet_size, cuttlefish:conf_get("mqtt.max_packet_size", Conf)}]
|
||||||
end}.
|
end}.
|
||||||
|
|
||||||
|
{mapping, "mqtt.websocket_protocol_header", "emqttd.websocket_protocol_header", [
|
||||||
|
{default, on},
|
||||||
|
{datatype, flag}
|
||||||
|
]}.
|
||||||
|
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
%% MQTT Connection
|
%% MQTT Connection
|
||||||
%%--------------------------------------------------------------------
|
%%--------------------------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue