|
|
@@ -241,9 +241,11 @@ basic_config(#{
|
|
|
connect_timeout => 30,
|
|
|
reconnect_interval => ReconnIntv,
|
|
|
proto_ver => ProtoVer,
|
|
|
- %% If haporxy enables mqtt connection packet checking,
|
|
|
- %% then using bridge_mode will directly cause the connection to fail.
|
|
|
- %% Let's disable bridge_mode.
|
|
|
+ %% Opening bridge_mode will form a non-standard mqtt connection message.
|
|
|
+ %% A load balancing server (such as haproxy) is often set up before the emqx broker server.
|
|
|
+ %% When the load balancing server enables mqtt connection packet inspection,
|
|
|
+ %% non-standard mqtt connection packets will be filtered out by LB.
|
|
|
+ %% So let's disable bridge_mode.
|
|
|
bridge_mode => false,
|
|
|
username => User,
|
|
|
password => Password,
|