Add websocket_protocol_header config

This commit is contained in:
turtled 2017-05-19 16:46:14 +08:00
parent 0ffa2d00d0
commit 414f156d4a
2 changed files with 8 additions and 0 deletions

View File

@ -119,6 +119,9 @@ mqtt.max_clientid_len = 1024
## Max Packet Size Allowed, 64K by default.
mqtt.max_packet_size = 64KB
## Check Websocket Protocol Header. Enum: on, off
mqtt.websocket_protocol_header = on
##--------------------------------------------------------------------
## MQTT Connection
##--------------------------------------------------------------------

View File

@ -346,6 +346,11 @@ end}.
{max_packet_size, cuttlefish:conf_get("mqtt.max_packet_size", Conf)}]
end}.
{mapping, "mqtt.websocket_protocol_header", "emqttd.websocket_protocol_header", [
{default, on},
{datatype, flag}
]}.
%%--------------------------------------------------------------------
%% MQTT Connection
%%--------------------------------------------------------------------